Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Relax the build dependency on NumPy
Do not pin NumPy build dependencies to specific versions.  It is
no longer necessary since NumPy 1.25, as it automatically exposes
"an API that is backwards compatible with the oldest NumPy version that
supports the currently oldest compatible Python version" -- effectively
removing the need to maintain downstream compatibility matrices.

See: https://numpy.org/devdocs/dev/depending_on_numpy.html#adding-a-dependency-on-numpy
  • Loading branch information
mgorny committed Jul 7, 2025
commit 4a11e5a46c593e7f6074731c6349b45acea4d173
5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
[build-system]
requires = [
"numpy<2.0; python_version<'3.9'",
"numpy==2.0.2; python_version>='3.9' and python_version<'3.13'",
"numpy==2.1.3; python_version=='3.13'",
# NumPy >=1.25 defaults to exposing "an API that is backwards compatible with the oldest NumPy version that supports the currently oldest compatible Python version"
# https://numpy.org/devdocs/dev/depending_on_numpy.html#adding-a-dependency-on-numpy
"numpy>=2.0; python_version>='3.9'",
"packaging",
"pip",
"scikit-build>=0.14.0",
Expand Down
Loading