From 10193fa290d143b8430b920a049e7ca0ed9d773d Mon Sep 17 00:00:00 2001 From: RUANG Date: Fri, 10 Jan 2025 13:29:19 +0800 Subject: [PATCH 1/3] Add arm64 to the get_platform method doc --- Doc/library/sysconfig.rst | 1 + Lib/sysconfig/__init__.py | 1 + 2 files changed, 2 insertions(+) diff --git a/Doc/library/sysconfig.rst b/Doc/library/sysconfig.rst index 3921908b7c7bfc..4bc36e8b1814b0 100644 --- a/Doc/library/sysconfig.rst +++ b/Doc/library/sysconfig.rst @@ -389,6 +389,7 @@ Other functions Windows will return one of: - win-amd64 (64bit Windows on AMD64, aka x86_64, Intel64, and EM64T) + - win-arm64 (64bit Windows on ARM64, aka AArch64) - win32 (all others - specifically, sys.platform is returned) macOS can return: diff --git a/Lib/sysconfig/__init__.py b/Lib/sysconfig/__init__.py index ed7b6a335d01d4..9972e167f56090 100644 --- a/Lib/sysconfig/__init__.py +++ b/Lib/sysconfig/__init__.py @@ -617,6 +617,7 @@ def get_platform(): Windows will return one of: win-amd64 (64bit Windows on AMD64 (aka x86_64, Intel64, EM64T, etc) + win-arm64 (64bit Windows on ARM64 (aka AArch64) win32 (all others - specifically, sys.platform is returned) For other non-POSIX platforms, currently just returns 'sys.platform'. From 5ef2c844456e85de1d538afacc7c7d90b4fb8552 Mon Sep 17 00:00:00 2001 From: "RUANG (James Roy)" Date: Fri, 10 Jan 2025 21:03:38 +0800 Subject: [PATCH 2/3] Should use 64-bit, not 64bit --- Doc/library/sysconfig.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Doc/library/sysconfig.rst b/Doc/library/sysconfig.rst index 4bc36e8b1814b0..9f018f9c8f0e50 100644 --- a/Doc/library/sysconfig.rst +++ b/Doc/library/sysconfig.rst @@ -388,8 +388,8 @@ Other functions Windows will return one of: - - win-amd64 (64bit Windows on AMD64, aka x86_64, Intel64, and EM64T) - - win-arm64 (64bit Windows on ARM64, aka AArch64) + - win-amd64 (64-bit Windows on AMD64, aka x86_64, Intel64, and EM64T) + - win-arm64 (64-bit Windows on ARM64, aka AArch64) - win32 (all others - specifically, sys.platform is returned) macOS can return: From 978fae4df71974d477cb240c320cc8e4cc8e6f35 Mon Sep 17 00:00:00 2001 From: "RUANG (James Roy)" Date: Fri, 10 Jan 2025 21:04:32 +0800 Subject: [PATCH 3/3] Ditto --- Lib/sysconfig/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/sysconfig/__init__.py b/Lib/sysconfig/__init__.py index 9972e167f56090..8556d19a279193 100644 --- a/Lib/sysconfig/__init__.py +++ b/Lib/sysconfig/__init__.py @@ -616,8 +616,8 @@ def get_platform(): solaris-2.6-sun4u Windows will return one of: - win-amd64 (64bit Windows on AMD64 (aka x86_64, Intel64, EM64T, etc) - win-arm64 (64bit Windows on ARM64 (aka AArch64) + win-amd64 (64-bit Windows on AMD64 (aka x86_64, Intel64, EM64T, etc) + win-arm64 (64-bit Windows on ARM64 (aka AArch64) win32 (all others - specifically, sys.platform is returned) For other non-POSIX platforms, currently just returns 'sys.platform'.