8000 pin numpy < 2 [cd build] · scikit-learn/scikit-learn@9e38cd0 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9e38cd0

Browse files
committed
pin numpy < 2 [cd build]
1 parent 46b5f54 commit 9e38cd0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

setup.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -614,6 +614,12 @@ def setup_package():
614614
},
615615
)
616616

617+
# Overwrite the dependencies to not allow for NumPy >= 2.0
618+
metadata["install_requires"] = [
619+
f"{dep},<2.0" if dep.startswith("numpy") else dep
620+
for dep in metadata["install_requires"]
621+
]
622+
617623
commands = [arg for arg in sys.argv[1:] if not arg.startswith("-")]
618624
if not all(
619625
command in ("egg_info", "dist_info", "clean", "check") for command in commands

0 commit comments

Comments
 (0)
0