Repository navigation
ENH: Add free-threaded Python (3.14t) packaging support - for release - #2580
Merged
blowekamp merged 3 commits intoMay 4, 2026
Merged
Conversation
blowekamp
commented
May 2, 2026
Member
- Python.i: declare module GIL-safe for free-threaded builds via PyUnstable_Module_SetGIL under Py_GIL_DISABLED guard
- Package.yml: add cp314-cp314t to manylinux PYTHON_VERSIONS and a continue-on-error 'Package Python 3.14t' step for macOS/Windows
- package_python/action.yml: bump setup-python from v5 to v6
- cmd.sh: replace deprecated distutils.util.get_platform() with sysconfig.get_platform()
Under Py_GIL_DISABLED, call PyUnstable_Module_SetGIL(m, Py_MOD_GIL_NOT_USED) in the module init block to declare the module compatible with free-threaded Python (PEP 703).
CMake 3.30 added FindPython support for free-threaded Python (PEP 703). Earlier versions resolve Python::Module to python3XXt.lib incorrectly, linking against python3XX.dll instead of python3XXt.dll and causing an access violation on module import. Emit a FATAL_ERROR if a free-threaded interpreter is detected (identified by a 't' in Python_SOABI) and CMake is older than 3.30.
blowekamp
force-pushed
the
backport-free-threaded-python
branch
from
May 3, 2026 12:09
994ca7d to
5cdf8c1
Compare
- Package.yml: add cp314-cp314t to manylinux PYTHON_VERSIONS, add continue-on-error 'Package Python 3.14t' step, bump cmake to ~=3.31 - package_python/action.yml: bump setup-python v5->v6, fix continue-on-error string-to-bool expression - cmd.sh: replace deprecated distutils.util.get_platform() with sysconfig.get_platform()
blowekamp
force-pushed
the
backport-free-threaded-python
branch
from
May 3, 2026 17:03
5cdf8c1 to
7caf723
Compare
dave3d
approved these changes
May 3, 2026
zivy
approved these changes
May 3, 2026
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.