Skip to content

Commit 0964298

Browse files
committed
Added missing macos return to sysconfig.get_platform()
1 parent 8979d3a commit 0964298

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

Doc/library/sysconfig.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,7 @@ Other functions
394394

395395
macOS can return:
396396

397+
- macosx-11.0-arm64
397398
- macosx-10.6-ppc
398399
- macosx-10.4-ppc64
399400
- macosx-10.3-i386

Lib/sysconfig/__init__.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -648,6 +648,14 @@ def get_platform():
648648
win-arm64 (64-bit Windows on ARM64 (aka AArch64)
649649
win32 (all others - specifically, sys.platform is returned)
650650
651+
macOS can return:
652+
macosx-11.0-arm64
653+
macosx-10.6-ppc
654+
macosx-10.4-ppc64
655+
macosx-10.3-i386
656+
macosx-10.4-fat
657+
658+
651659
For other non-POSIX platforms, currently just returns 'sys.platform'.
652660
653661
"""

0 commit comments

Comments
 (0)