]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-122931: Allow stable abi3 API extensions to include a multiarch tuple in the filen...
authorStefano Rivera <stefano@rivera.za.net>
Mon, 27 Jul 2026 13:05:40 +0000 (06:05 -0700)
committerGitHub <noreply@github.com>
Mon, 27 Jul 2026 13:05:40 +0000 (15:05 +0200)
commit7961bbf2bbbd96679eba89419c34128481b9b0ff
treea0886029a5d387aa24833d5b749083230f99c082
parent58d9c78d6aa45cf64237b571adbd0b3289a34559
gh-122931: Allow stable abi3 API extensions to include a multiarch tuple in the filename (GH-152461)

This permits stable ABI extensions for multiple architectures to be
co-installed into the same directory, without clashing with each other,
the same way (non-stable ABI) regular extensions can.

It is listed before the current platform-less suffixes since it's more
specific.

The platform is stored in a new pyconfig.h define & sysconfig
variable, SOABI_PLATFORM.
On some known architectures (FreeBSD, Windows), this
will be undefined/zero; these won't have the new tag (yet).

Add SOABI_PLATFORM & ALT_SOABI the info to
`make pythoninfo` as well.

Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
Doc/whatsnew/3.15.rst
Lib/test/pythoninfo.py
Lib/test/test_importlib/extension/test_finder.py
Lib/test/test_sysconfig.py
Misc/NEWS.d/next/C_API/2024-08-12-09-48-04.gh-issue-122931.x435Mb.rst [new file with mode: 0644]
Python/dynload_shlib.c
configure
configure.ac
pyconfig.h.in