Skip to content

0.6.0

Latest

Choose a tag to compare

@antonwolfy antonwolfy released this 15 Oct 16:52
· 83 commits to main since this release
8dd56d6

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 _ufuncs declares Py_MOD_GIL_NOT_USED, so importing mkl_umath no longer re-enables the GIL
  • Removed the python-gil constraint from the conda recipes that pinned mkl_umath to GIL-enabled Python 3.14 builds

🛠️ Build Fixes

  • Fixed ImportError on Linux/macOS when built with meson-python >= 0.22, which strips the $ORIGIN RPATH Meson auto-inserts for internal link_with dependencies
  • Fixed the Windows build with icx against NumPy >= 2.4.4

🐛 Bug Fixes

  • absolute (float32/float64) no longer returns -NaN for +NaN input on the scalar fallback path
  • Fixed a module object leak and an over-decref of a borrowed reference on the module initialization error paths

⚠️ Build Requirement Changes

  • Minimum build-time Cython raised to 3.1.0 (first release providing the freethreading_compatible directive)

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=True and _ufuncs declares Py_MOD_GIL_NOT_USED, so importing mkl_umath no longer re-enables the GIL gh-255

Changed

  • Raised the minimum build-time Cython requirement to 3.1.0, the first release providing the freethreading_compatible directive gh-255
  • Pinned Cython in the Coverity Scan workflow so generated code stays stable between scans, and added coverity/README.md documenting the known Cython-boilerplate false positives and the scan review checklist gh-266

Fixed

  • Fixed absolute (float32/float64) returning -NaN for +NaN input 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 ImportError on Linux/macOS when built with meson-python >= 0.22, which strips the $ORIGIN RPATH Meson auto-inserts for internal link_with dependencies gh-275
  • Fixed the Windows build with icx against NumPy >= 2.4.4, where npy_math.h fails to compile because NumPy's complex types no longer use the UCRT _Dcomplex for icx gh-265

Removed

  • Removed the python-gil constraint from the conda recipes, which pinned mkl_umath to GIL-enabled Python 3.14 builds gh-255

Contributors

Full Changelog: 0.5.0...0.6.0