Skip to content

Commit

Permalink
Building against oldest-supported-numpy for python3.8, numpy2 for all…
Browse files Browse the repository at this point in the history
… others. RE:natcap#396
  • Loading branch information
phargogh committed Jun 27, 2024
1 parent 16bdd12 commit 7fcc940
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ dynamic = ["version", "dependencies", "optional-dependencies", "readme"]
# that we can provide a much easier build experience so long as GDAL is
# available at runtime.
requires = [
'setuptools', 'wheel', 'setuptools_scm', 'cython>=3.0.0', 'numpy>=2'
'setuptools', 'wheel', 'setuptools_scm', 'cython>=3.0.0',
'oldest-supported-numpy; python_version<="3.8"',
'numpy>=2; python_version>="3.9"', # Numpy 2 only available for 3.9+
]
build-backend = "setuptools.build_meta"

Expand Down

0 comments on commit 7fcc940

Please sign in to comment.