Skip to content

Commit 5db6178

Browse files
committed
removed exhaustive list for macOS
1 parent 7ab7580 commit 5db6178

File tree

2 files changed

+16
-24
lines changed

2 files changed

+16
-24
lines changed

Doc/library/sysconfig.rst

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -382,29 +382,25 @@ Other functions
382382

383383
Returned values:
384384

385-
Linux platforms:
385+
Examples of Linux returned values:
386+
386387
- linux-i586
387388
- linux-i686
388389
- linux-alpha (?)
389390
- solaris-2.6-sun4u
390391

391392
Windows platforms:
393+
392394
- win32 (32-bit Windows)
393395
- win-amd64 (64-bit Windows on AMD64, aka x86_64, Intel64, and EM64T)
394396
- win-arm64 (64-bit Windows on ARM64, aka AArch64)
395397
- win-arm32 (32-bit Windows on ARM)
396398

397-
macOS platforms:
398-
- macosx-{11.*-15.*}-arm64 (Apple Silicon)
399-
- macosx-10.{3,4}-ppc (PowerPC)
400-
- macosx-10.{3,4}-ppc64 (64-bit PowerPC)
401-
- macosx-10.{3,4}-i386 (32-bit Intel)
402-
- macosx-10.{3,4}-x86_64 (64-bit Intel)
403-
- macosx-10.4-fat (Universal binary with PPC and i386)
404-
- macosx-10.4-fat3 (Universal binary with x86_64, PPC, and i386)
405-
- macosx-10.4-fat64 (Universal binary with x86_64 and ppc64)
406-
- macosx-10.4-universal (Universal binary with ppc64, x86_64, ppc, and i386)
407-
- macosx-10.4-intel (Intel binary with x86_64 and i386)
399+
Examples of macOS returned values:
400+
401+
- macosx-10.13-x86_64
402+
- macosx-11-universal2
403+
- macosx-15.5-arm64
408404

409405

410406
For other non-POSIX platforms, currently just returns :data:`sys.platform`.

Lib/sysconfig/__init__.py

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -640,29 +640,25 @@ def get_platform():
640640
641641
Returned values:
642642
643-
Linux platforms:
643+
Examples of Linux returned values:
644+
644645
- linux-i586
645646
- linux-i686
646647
- linux-alpha (?)
647648
- solaris-2.6-sun4u
648649
649650
Windows platforms:
651+
650652
- win32 (32-bit Windows)
651653
- win-amd64 (64-bit Windows on AMD64, aka x86_64, Intel64, and EM64T)
652654
- win-arm64 (64-bit Windows on ARM64, aka AArch64)
653655
- win-arm32 (32-bit Windows on ARM)
654656
655-
macOS platforms:
656-
- macosx-{11.*-15.*}-arm64 (Apple Silicon)
657-
- macosx-10.{3,4}-ppc (PowerPC)
658-
- macosx-10.{3,4}-ppc64 (64-bit PowerPC)
659-
- macosx-10.{3,4}-i386 (32-bit Intel)
660-
- macosx-10.{3,4}-x86_64 (64-bit Intel)
661-
- macosx-10.4-fat (Universal binary with PPC and i386)
662-
- macosx-10.4-fat3 (Universal binary with x86_64, PPC, and i386)
663-
- macosx-10.4-fat64 (Universal binary with x86_64 and ppc64)
664-
- macosx-10.4-universal (Universal binary with ppc64, x86_64, ppc, and i386)
665-
- macosx-10.4-intel (Intel binary with x86_64 and i386)
657+
Examples of macOS returned values:
658+
659+
- macosx-10.13-x86_64
660+
- macosx-11-universal2
661+
- macosx-15.5-arm64
666662
667663
668664
For other non-POSIX platforms, currently just returns :data:`sys.platform`.

0 commit comments

Comments
 (0)