Repository navigation
Fix ABI3T feature selection for free-threaded Python - #622
Open
jameshilliard wants to merge 2 commits into
Open
jameshilliard wants to merge 2 commits into
jameshilliard wants to merge 2 commits into
Conversation
Build the ABI3 example on Python 3.11 and test it on the latest Python. Building on 3.15 produces platform-qualified suffixes that Python 3.11 cannot import. Use the stdlib venv backend for GraalPy on Windows, where virtualenv fails to import IO_REPARSE_TAG_MOUNT_POINT from stat. Test the Zig-built wheel in the Python 3.10 container using the existing QEMU setup action. This avoids installing Ubuntu packages under emulation, where the libc-bin post-installation step crashes.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
py_limited_api=cp315currently enablespyo3/abi3-py315even when targeting free-threaded Python. With recent setuptools, the extension receives an ABI3T filename and stable-ABI wheel tags, but PyO3 falls back to a version-specific free-threaded ABI.Use
Py_GIL_DISABLEDfrom the target sysconfig data to select PyO3'sabi3tfeatures for free-threaded builds. Preserve ABI3 selection for GIL-enabled builds and leave explicit extension settings unchanged.Add regression tests for both ABI choices, unset configuration, explicit extension settings, and other binding types. Document the
cp315minimum for PyO3 ABI3T builds and add a changelog entry.Testing
pyo3/abi3t-py315feature, ABI3T extension filename, wheel tags, and exportedPyModExport_rustentry point. This was not runtime-tested on Python 3.15t.