Skip to content

Commit fb5f0e0

Browse files
committed
pinning scipy before torch install
1 parent 60508cb commit fb5f0e0

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

cibuildwheel.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@ before-build = "rm -rf {package}/osqp_sources/build"
66
# Install CPU-only version of torch beforehand since that allows cibuildwheel
77
# to satisfy the "test" dependency group install, but much faster. The runtime
88
# cost of torch-based osqp tests are considered negligible so torch-cpu is ok.
9-
before-test = "pip install torch --index-url https://download.pytorch.org/whl/cpu"
9+
before-test = """
10+
pip install "scipy!=1.12.0,<1.17"
11+
pip install torch --index-url https://download.pytorch.org/whl/cpu"
12+
"""
1013
test-groups = ["test"]
1114
test-command = "python -m pytest -s {project}/src/osqp/tests"
1215
# 09/10/25 - Skip testing on cp313-manylinux_aarch64 because torch/numpy deps are unsatisfiable

0 commit comments

Comments
 (0)