Skip to content

Commit 23bfef5

Browse files
committed
Revert "Allow older numpy for Python >=3.9"
This reverts commit ee349e8, and adds some comments.
1 parent 1c922fe commit 23bfef5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pyproject.toml

+4-2
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,10 @@ requires = [
7676
"ninja",
7777
"setuptools",
7878
"cython>=3",
79-
# Newer than NEP29-minimum: compile against oldest numpy available
80-
"numpy>=1.22; python_version > '3.8'",
79+
# From Numpy 1.25, Numpy is always backwards compatible for any given Python
80+
# version. See:
81+
# https://numpy.org/doc/stable/release/1.25.0-notes.html#compiling-against-the-numpy-c-api-is-now-backwards-compatible-by-default
82+
"numpy>=1.25; python_version > '3.8'",
8183
# NEP29-minimum as of Sep 21, 2023
8284
"numpy==1.22; python_version >= '3.7' and python_version < '3.9'",
8385
]

0 commit comments

Comments
 (0)