Skip to content

Commit

Permalink
[cd build] FIX only change numpy when limiting upper limit
Browse files Browse the repository at this point in the history
  • Loading branch information
glemaitre authored and jeremiedbb committed Sep 20, 2023
1 parent 90c9a4d commit 55a65a2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion setup.py
Expand Up @@ -603,7 +603,8 @@ def setup_package():

# Overwrite the dependencies to not allow for NumPy >= 2.0
metadata["install_requires"] = [
f"{dep},<2.0" for dep in metadata["install_requires"] if dep.startswith("numpy")
f"{dep},<2.0" if dep.startswith("numpy") else dep
for dep in metadata["install_requires"]
]

commands = [arg for arg in sys.argv[1:] if not arg.startswith("-")]
Expand Down

0 comments on commit 55a65a2

Please sign in to comment.