Skip to content

Commit

Permalink
pin numpy < 2 [cd build]
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremiedbb committed Jan 18, 2024
1 parent 46b5f54 commit 9e38cd0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -614,6 +614,12 @@ def setup_package():
},
)

# Overwrite the dependencies to not allow for NumPy >= 2.0
metadata["install_requires"] = [
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("-")]
if not all(
command in ("egg_info", "dist_info", "clean", "check") for command in commands
Expand Down

0 comments on commit 9e38cd0

Please sign in to comment.