]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-129712: Document the wheels tags corresponding to each universal SDK. (#130389)
authorRussell Keith-Magee <russell@keith-magee.com>
Sat, 22 Feb 2025 08:30:30 +0000 (16:30 +0800)
committerGitHub <noreply@github.com>
Sat, 22 Feb 2025 08:30:30 +0000 (16:30 +0800)
Document the architectures supported by macOS universal SDK configuration flags,
and add details on wheel tag naming.

Doc/using/configure.rst
Mac/README.rst
Misc/NEWS.d/next/Documentation/2025-02-21-08-44-31.gh-issue-129712.4AcfWQ.rst [new file with mode: 0644]

index 72912cea2f0c28ebc471fb428dc5a11b1825bdc2..4d47cf945219dd3f52d1daa2aefd3a2e1b5795e3 100644 (file)
@@ -978,14 +978,20 @@ See :source:`Mac/README.rst`.
 
    Options:
 
-   * ``universal2``;
-   * ``32-bit``;
-   * ``64-bit``;
-   * ``3-way``;
-   * ``intel``;
-   * ``intel-32``;
-   * ``intel-64``;
-   * ``all``.
+   * ``universal2`` (x86-64 and arm64);
+   * ``32-bit`` (PPC and i386);
+   * ``64-bit``  (PPC64 and x86-64);
+   * ``3-way`` (i386, PPC and x86-64);
+   * ``intel`` (i386 and x86-64);
+   * ``intel-32`` (i386);
+   * ``intel-64`` (x86-64);
+   * ``all``  (PPC, i386, PPC64 and x86-64).
+
+   Note that values for this configuration item are *not* the same as the
+   identifiers used for universal binary wheels on macOS. See the Python
+   Packaging User Guide for details on the `packaging platform compatibility
+   tags used on macOS
+   <https://packaging.python.org/en/latest/specifications/platform-compatibility-tags/#macos>`_
 
 .. option:: --with-framework-name=FRAMEWORK
 
index e32566d5475ae3bb4a9a64fc4f891326957e2aca..8a6e52725615aae7d80d72f8c5c9c65687f391d9 100644 (file)
@@ -200,6 +200,16 @@ a ``python3.x-32`` binary and use the value of ``sys.executable`` as the
 Likewise, use ``python3.x-intel64`` to force execution in ``x86_64`` mode
 with ``universal2`` binaries.
 
+3. How do I specify binary universal wheels
+-------------------------------------------
+
+Binary wheels can also be universal. The platform tag name used to identify
+universal binary wheels differs from the naming scheme used when configuring a
+universal build with ``--with-universal-archs``. See the Python Packaging User
+Guide for details on the `packaging platform compatibility tags used on macOS
+<https://packaging.python.org/en/latest/specifications/platform-compatibility-tags/#macos>`_.
+
+
 Building and using a framework-based Python on macOS
 ====================================================
 
diff --git a/Misc/NEWS.d/next/Documentation/2025-02-21-08-44-31.gh-issue-129712.4AcfWQ.rst b/Misc/NEWS.d/next/Documentation/2025-02-21-08-44-31.gh-issue-129712.4AcfWQ.rst
new file mode 100644 (file)
index 0000000..82ad17c
--- /dev/null
@@ -0,0 +1,2 @@
+The wheel tags supported by each macOS universal SDK option are now
+documented.