Skip to content

1.5.0

Choose a tag to compare

@vlad-perevezentsev vlad-perevezentsev released this 13 Aug 14:19
· 283 commits to master since this release
cb12912

Overview

This release migrates mkl_random to a modern Meson-based build system, replacing the legacy setuptools/setup.py pipeline. It also introduces a command-line interface for patching NumPy's random with MKL-accelerated implementations, and adds compatibility with NumPy 2.5.

Highlights

🏗️ New Build System

  • Migrated from setuptools to meson-python, removing setup.py in favor of meson.build, aligning mkl_random with the build system used by NumPy and SciPy
  • MKL is now discovered via CMake, and ninja/cmake are formal build requirements

🆕 NumPy random patching CLI

  • Added python -m mkl_random --patch install/uninstall/status for persistent NumPy random patching across all Python sessions
  • Added python -m mkl_random --with-numpy-patch <command> for one-shot execution of a command with MKL-accelerated random

🔧 NumPy 2.5 compatibility

  • Updated mkl_random and its test suite to work with NumPy 2.5, replacing APIs deprecated upstream

Python Version Support

  • ✅ Python 3.10, 3.11, 3.12, 3.13, 3.14

Detailed Changes

Added

  • Added CLI patch management for NumPy random with persistent install/status/uninstall and one-shot command patching via python -m mkl_random --patch <command> and python -m mkl_random --with-numpy-patch <command> gh-133

Changed

  • Removed numpy-base dependency and USE_NUMPY_BASE environment variable from conda recipe gh-124
  • Migrated the build system from setuptools to meson-python, removing setup.py in favor of meson.build gh-113

Fixed

  • Fixed compatibility with NumPy 2.5 by replacing the deprecated in-place array shape assignment with reshape, and by replacing the deprecated numpy.testing.suppress_warnings usage in tests with pytest.warns gh-137
  • Fixed a constant integer overflow in irk_rand_uint32_vec by declaring the shift variable as npy_uint32 instead of npy_int32, so 2**31 no longer overflows a signed 32-bit integer (behavior is unchanged as all downstream uses rely on modulo-2^32 arithmetic) gh-156

Contributors

New Contributors

Full Changelog: 1.4.2...1.5.0