Repository navigation
Overview
This release adds Python 3.15 support and enables free-threaded (GIL-disabled) CPython builds. It also fixes an ImportError when built with meson-python >= 0.22, the Windows icx build against NumPy >= 2.4.4, absolute returning -NaN for +NaN input, and two reference-counting bugs on the module initialization error paths. Building from source now requires a newer Cython.
Highlights
🐍 Python 3.15 Support
- Added support for Python 3.15
🧵 Free-Threaded CPython
- The Cython extension is now compiled with
freethreading_compatible=True, and_ufuncsdeclaresPy_MOD_GIL_NOT_USED, so importingmkl_umathno longer re-enables the GIL - Removed the
python-gilconstraint from the conda recipes that pinnedmkl_umathto GIL-enabled Python 3.14 builds
🛠️ Build Fixes
- Fixed
ImportErroron Linux/macOS when built withmeson-python>= 0.22, which strips the$ORIGINRPATH Meson auto-inserts for internallink_withdependencies - Fixed the Windows build with
icxagainst NumPy >= 2.4.4
🐛 Bug Fixes
absolute(float32/float64) no longer returns-NaNfor+NaNinput on the scalar fallback path- Fixed a module object leak and an over-decref of a borrowed reference on the module initialization error paths
- Minimum build-time
Cythonraised to3.1.0(first release providing thefreethreading_compatibledirective)
Python Version Support
- ✅ Python 3.10, 3.11, 3.12, 3.13, 3.14, 3.15 (plus free-threaded 3.14t)
Detailed Changes
Added
- Enabled support of Python 3.15 gh-279
- Added support for free-threaded (GIL-disabled) CPython builds: the Cython extension is compiled with
freethreading_compatible=Trueand_ufuncsdeclaresPy_MOD_GIL_NOT_USED, so importingmkl_umathno longer re-enables the GIL gh-255
Changed
- Raised the minimum build-time
Cythonrequirement to3.1.0, the first release providing thefreethreading_compatibledirective gh-255 - Pinned Cython in the Coverity Scan workflow so generated code stays stable between scans, and added
coverity/README.mddocumenting the known Cython-boilerplate false positives and the scan review checklist gh-266
Fixed
- Fixed
absolute(float32/float64) returning-NaNfor+NaNinput on the scalar fallback path (same issue as numpy/numpy@dc478c58b9, gh-31433) gh-269 - Fixed an over-decref of the borrowed module dictionary reference on the module initialization error path gh-264
- Fixed a leak of the module object when the NumPy C-API import fails during module initialization gh-263
- Fixed
ImportErroron Linux/macOS when built withmeson-python>= 0.22, which strips the$ORIGINRPATH Meson auto-inserts for internallink_withdependencies gh-275 - Fixed the Windows build with
icxagainst NumPy >= 2.4.4, wherenpy_math.hfails to compile because NumPy's complex types no longer use the UCRT_Dcomplexforicxgh-265
Removed
- Removed the
python-gilconstraint from the conda recipes, which pinnedmkl_umathto GIL-enabled Python 3.14 builds gh-255
Contributors
- Anton Volkov (@antonwolfy)
- Venkata Sai Gireesh Chamarthi (@vchamarthi)
- Vladislav Perevezentsev (@vlad-perevezentsev)
- Jordan Harlow (@jharlow-intel)
Full Changelog: 0.5.0...0.6.0