From ec40eecc92500354aa3c417bb4323d0c26344042 Mon Sep 17 00:00:00 2001 From: James Lamb Date: Wed, 3 Jul 2024 12:42:00 -0500 Subject: [PATCH] Avoid --find-links in wheel jobs --- ci/build_wheel_cugraph_kg.sh | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/ci/build_wheel_cugraph_kg.sh b/ci/build_wheel_cugraph_kg.sh index ffd6445..c0f8c0c 100755 --- a/ci/build_wheel_cugraph_kg.sh +++ b/ci/build_wheel_cugraph_kg.sh @@ -1,16 +1,20 @@ #!/bin/bash -# Copyright (c) 2023, NVIDIA CORPORATION. +# Copyright (c) 2023-2024, NVIDIA CORPORATION. set -euo pipefail RAPIDS_PY_CUDA_SUFFIX="$(rapids-wheel-ctk-name-gen ${RAPIDS_CUDA_VERSION})" # Download the pylibcugraph wheel built in the previous step and make it -# available for pip to find. We must use PIP_FIND_LINKS because the package -# must be made available to the isolated build step, and there is no way to -# manually install it into that environment. +# available for pip to find. +# +# ensure 'cugraph' wheel builds always use the 'pylibcugraph' 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 RAPIDS_PY_WHEEL_NAME=pylibcugraph_${RAPIDS_PY_CUDA_SUFFIX} rapids-download-wheels-from-s3 ./local-pylibcugraph -export PIP_FIND_LINKS=$(pwd)/local-pylibcugraph +echo "pylibcugraph-${RAPIDS_PY_CUDA_SUFFIX} @ file://$(echo ${PWD}/local-pylibcugraph/pylibcugraph_*.whl)" > ./constraints.txt +export PIP_CONSTRAINT="${PWD}/constraints.txt" export SKBUILD_CMAKE_ARGS="-DDETECT_CONDA_ENV=OFF;-DFIND_CUGRAPH_CPP=OFF;-DCPM_cugraph-ops_SOURCE=${GITHUB_WORKSPACE}/cugraph-ops/"