From 2a5d3c72795a0be423abc0328d4365442111d32e Mon Sep 17 00:00:00 2001 From: James Lamb Date: Thu, 27 Jun 2024 15:20:44 -0700 Subject: [PATCH 1/2] Avoid --find-links in wheel jobs --- ci/build_wheel_python.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/ci/build_wheel_python.sh b/ci/build_wheel_python.sh index 1fbe80800b..dfdabc9c8f 100755 --- a/ci/build_wheel_python.sh +++ b/ci/build_wheel_python.sh @@ -17,7 +17,14 @@ CPP_WHEELHOUSE=$(RAPIDS_PY_WHEEL_NAME="libkvikio_${RAPIDS_PY_CUDA_SUFFIX}" rapid cd "${package_dir}" -python -m pip wheel . -w dist -vvv --no-deps --disable-pip-version-check --find-links ${CPP_WHEELHOUSE} +# ensure 'kvikio wheel builds always use the 'libkvikio' just built in the same CI run +# +# using env variable PIP_CONSTRAINT is necessary to ensure the constraints +# are used when creating the isolated build environment +echo "libkvikio-${RAPIDS_PY_CUDA_SUFFIX} @ file://$(echo ${CPP_WHEELHOUSE}/libkvikio_*.whl)" > ./constraints.txt + +PIP_CONSTRAINT="${PWD}/constraints.txt" \ + python -m pip wheel . -w dist -vvv --no-deps --disable-pip-version-check mkdir -p final_dist python -m auditwheel repair -w final_dist dist/* From 633f3fba7059fe2072c7ecee06cb525ad3cbeb3e Mon Sep 17 00:00:00 2001 From: James Lamb Date: Thu, 27 Jun 2024 15:32:51 -0700 Subject: [PATCH 2/2] fix typo --- ci/build_wheel_python.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/build_wheel_python.sh b/ci/build_wheel_python.sh index dfdabc9c8f..a75ef5b08b 100755 --- a/ci/build_wheel_python.sh +++ b/ci/build_wheel_python.sh @@ -17,7 +17,7 @@ CPP_WHEELHOUSE=$(RAPIDS_PY_WHEEL_NAME="libkvikio_${RAPIDS_PY_CUDA_SUFFIX}" rapid cd "${package_dir}" -# ensure 'kvikio wheel builds always use the 'libkvikio' just built in the same CI run +# ensure 'kvikio' wheel builds always use the 'libkvikio' just built in the same CI run # # using env variable PIP_CONSTRAINT is necessary to ensure the constraints # are used when creating the isolated build environment