Skip to content

Commit 474c388

Browse files
authored
pythongh-129712: Document the wheels tags corresponding to each universal SDK. (python#130389)
Document the architectures supported by macOS universal SDK configuration flags, and add details on wheel tag naming.
1 parent 30e8924 commit 474c388

File tree

3 files changed

+26
-8
lines changed

3 files changed

+26
-8
lines changed

Doc/using/configure.rst

+14-8
Original file line numberDiff line numberDiff line change
@@ -978,14 +978,20 @@ See :source:`Mac/README.rst`.
978978

979979
Options:
980980

981-
* ``universal2``;
982-
* ``32-bit``;
983-
* ``64-bit``;
984-
* ``3-way``;
985-
* ``intel``;
986-
* ``intel-32``;
987-
* ``intel-64``;
988-
* ``all``.
981+
* ``universal2`` (x86-64 and arm64);
982+
* ``32-bit`` (PPC and i386);
983+
* ``64-bit`` (PPC64 and x86-64);
984+
* ``3-way`` (i386, PPC and x86-64);
985+
* ``intel`` (i386 and x86-64);
986+
* ``intel-32`` (i386);
987+
* ``intel-64`` (x86-64);
988+
* ``all`` (PPC, i386, PPC64 and x86-64).
989+
990+
Note that values for this configuration item are *not* the same as the
991+
identifiers used for universal binary wheels on macOS. See the Python
992+
Packaging User Guide for details on the `packaging platform compatibility
993+
tags used on macOS
994+
<https://packaging.python.org/en/latest/specifications/platform-compatibility-tags/#macos>`_
989995

990996
.. option:: --with-framework-name=FRAMEWORK
991997

Mac/README.rst

+10
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,16 @@ a ``python3.x-32`` binary and use the value of ``sys.executable`` as the
200200
Likewise, use ``python3.x-intel64`` to force execution in ``x86_64`` mode
201201
with ``universal2`` binaries.
202202

203+
3. How do I specify binary universal wheels
204+
-------------------------------------------
205+
206+
Binary wheels can also be universal. The platform tag name used to identify
207+
universal binary wheels differs from the naming scheme used when configuring a
208+
universal build with ``--with-universal-archs``. See the Python Packaging User
209+
Guide for details on the `packaging platform compatibility tags used on macOS
210+
<https://packaging.python.org/en/latest/specifications/platform-compatibility-tags/#macos>`_.
211+
212+
203213
Building and using a framework-based Python on macOS
204214
====================================================
205215

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
The wheel tags supported by each macOS universal SDK option are now
2+
documented.

0 commit comments

Comments
 (0)