|
17 | 17 |
|
18 | 18 | set -euo pipefail |
19 | 19 |
|
| 20 | +# sets up a constraints file for 'pip' and puts its location in an exported variable PIP_EXPORT, |
| 21 | +# so those constraints will affect all future 'pip install' calls |
20 | 22 | source rapids-init-pip |
21 | 23 |
|
22 | 24 | # Download the packages built in the previous step |
23 | 25 | RAPIDS_PY_CUDA_SUFFIX="$(rapids-wheel-ctk-name-gen "${RAPIDS_CUDA_VERSION}")" |
24 | 26 | CUOPT_MPS_PARSER_WHEELHOUSE=$(RAPIDS_PY_WHEEL_NAME="cuopt_mps_parser" rapids-download-wheels-from-github python) |
| 27 | +CUOPT_SH_CLIENT_WHEELHOUSE=$(RAPIDS_PY_WHEEL_NAME="cuopt_sh_client" rapids-download-wheels-from-github python) |
25 | 28 | CUOPT_WHEELHOUSE=$(RAPIDS_PY_WHEEL_NAME="cuopt_${RAPIDS_PY_CUDA_SUFFIX}" rapids-download-wheels-from-github python) |
26 | 29 | LIBCUOPT_WHEELHOUSE=$(RAPIDS_PY_WHEEL_NAME="libcuopt_${RAPIDS_PY_CUDA_SUFFIX}" rapids-download-wheels-from-github cpp) |
27 | 30 |
|
| 31 | +# update pip constraints.txt to ensure all future 'pip install' (including those in ci/thirdparty-testing) |
| 32 | +# use these wheels for cuopt packages |
| 33 | +cat > "${PIP_CONSTRAINT}" <<EOF |
| 34 | +cuopt-${RAPIDS_PY_CUDA_SUFFIX} @ file://$(echo ${CUOPT_WHEELHOUSE}/cuopt_${RAPIDS_PY_CUDA_SUFFIX}-*.whl) |
| 35 | +cuopt-mps-parser @ file://$(echo ${CUOPT_MPS_PARSER_WHEELHOUSE}/cuopt_mps_parser-*.whl) |
| 36 | +cuopt-sh-client @ file://$(echo ${CUOPT_SH_CLIENT_WHEELHOUSE}/cuopt_sh_client-*.whl) |
| 37 | +libcuopt-${RAPIDS_PY_CUDA_SUFFIX} @ file://$(echo ${LIBCUOPT_WHEELHOUSE}/libcuopt_${RAPIDS_PY_CUDA_SUFFIX}-*.whl) |
| 38 | +EOF |
| 39 | + |
28 | 40 | # echo to expand wildcard before adding `[extra]` requires for pip |
29 | 41 | rapids-pip-retry install \ |
30 | 42 | --extra-index-url=https://pypi.nvidia.com \ |
| 43 | + --constraint "${PIP_CONSTRAINT}" \ |
31 | 44 | "${CUOPT_MPS_PARSER_WHEELHOUSE}"/cuopt_mps_parser*.whl \ |
32 | 45 | "$(echo "${CUOPT_WHEELHOUSE}"/cuopt*.whl)[test]" \ |
| 46 | + "${CUOPT_SH_CLIENT_WHEELHOUSE}"/cuopt_sh_client*.whl \ |
33 | 47 | "${LIBCUOPT_WHEELHOUSE}"/libcuopt*.whl |
34 | 48 |
|
35 | 49 | python -c "import cuopt" |
@@ -59,3 +73,5 @@ timeout 10m bash ./python/libcuopt/libcuopt/tests/test_cli.sh |
59 | 73 | # Run Python tests |
60 | 74 | RAPIDS_DATASET_ROOT_DIR=./datasets timeout 30m python -m pytest --verbose --capture=no ./python/cuopt/cuopt/tests/ |
61 | 75 |
|
| 76 | +# run cvxpy integration tests |
| 77 | +./ci/thirdparty-testing/run_cvxpy_tests.sh |
0 commit comments