Skip to content

Commit 2d35efd

Browse files
committed
build against numpy 2 when the Python version supports it.
1 parent 1c98e3a commit 2d35efd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pyproject.toml

+2-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ invest = "natcap.invest.cli:main"
4646
# available at runtime.
4747
requires = [
4848
'setuptools>=61', 'wheel', 'setuptools_scm>=8.0', 'cython>=3.0.0', 'babel',
49-
'oldest-supported-numpy'
49+
'oldest-supported-numpy; python_version<="3.8"',
50+
'numpy>=2; python_version>="3.9"', # Numpy 2 only available for 3.9+
5051
]
5152
build-backend = "setuptools.build_meta"
5253

0 commit comments

Comments
 (0)