Skip to content

Commit

Permalink
Specify numpy versions properly to build for both 2.0 and 1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
imciner2 committed Jun 19, 2024
1 parent e3d7bfa commit 1e0be34
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
[build-system]
requires = ["setuptools>=49.5.0", "pybind11", "cmake"]
requires = [
# Building with numpy 2.0 is compatible with numpy 1.x, but it
# is only available on Python 3.9+
"numpy >= 2.0.0; python_version > '3.8'",
"oldest-supported-numpy; python_version <= '3.8'",
"setuptools>=49.5.0",
"pybind11",
"cmake"
]
build-backend = "setuptools.build_meta"

0 comments on commit 1e0be34

Please sign in to comment.