Skip to content

Commit

Permalink
Force numpy to be less than 2.0
Browse files Browse the repository at this point in the history
Some packages we depend on do not support numpy 2.0 yet. Keep this
constraint in place until we decide it is time to upgrade.

Signed-off-by: Patrick Avery <[email protected]>
  • Loading branch information
psavery committed Jun 25, 2024
1 parent 2761d0f commit f8bff7a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions conda.recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ requirements:
- {{ compiler('cxx') }}
- python {{ python }} # [build_platform != target_platform]
- cross-python_{{ target_platform }} # [build_platform != target_platform]
- numpy >=1.20 # [build_platform != target_platform]
- numpy >=1.20,<2.0 # [build_platform != target_platform]
# Numba is only here to make sure we use a version of numpy that is compatible
- numba # [build_platform != target_platform]
- pybind11 # [build_platform != target_platform]
host:
- python {{ python }}
- numpy >=1.20
- numpy >=1.20,<2.0
- setuptools
- setuptools_scm
# Numba is only here to make sure we use a version of numpy that is compatible
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[build-system]
requires = ["setuptools", "wheel", "numpy<1.27", "setuptools_scm[toml]", "pybind11>=2.11.0"]
requires = ["setuptools", "wheel", "numpy<2.0", "setuptools_scm[toml]", "pybind11>=2.11.0"]

[tool.black]
line-length = 79
Expand Down

0 comments on commit f8bff7a

Please sign in to comment.