From 25e5e17546c95be8f45f13b4e1352161417a152d Mon Sep 17 00:00:00 2001 From: brandon-b-miller <53796099+brandon-b-miller@users.noreply.github.com> Date: Thu, 22 Sep 2022 13:11:19 -0500 Subject: [PATCH] Add `strings_udf` package for python 3.9 (#11730) This PR fixes an issue where the `strings_udf` conda package for python 3.9 is missing, due to the way `strings_udf` is plumbed through CI. Authors: - https://github.com/brandon-b-miller Approvers: - AJ Schmidt (https://github.com/ajschmidt8) URL: https://github.com/rapidsai/cudf/pull/11730 --- ci/cpu/upload.sh | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/ci/cpu/upload.sh b/ci/cpu/upload.sh index 771b7853ade..5fe35ef7466 100755 --- a/ci/cpu/upload.sh +++ b/ci/cpu/upload.sh @@ -34,10 +34,17 @@ if [[ "$BUILD_LIBCUDF" == "1" && "$UPLOAD_LIBCUDF" == "1" ]]; then LIBCUDF_FILES=$(echo "$LIBCUDF_FILES" | sed 's/.*libcudf-example.*//') # skip libcudf-example pkg upload gpuci_retry anaconda -t ${MY_UPLOAD_KEY} upload -u ${CONDA_USERNAME:-rapidsai} ${LABEL_OPTION} --skip-existing --no-progress $LIBCUDF_FILES - # also build strings_udf on cpu machines - export STRINGS_UDF_FILE=$(conda build --croot "${CONDA_BLD_DIR}" conda/recipes/strings_udf --python=$PYTHON --output) + # since strings_udf compiles libcudf code, we require it be built in the same environment as libcudf + # however since libcudf is agnostic to the python version that is present, we must vary it explicitly + # here if we want packages for both python 3.8 and 3.9 + export STRINGS_UDF_FILE=$(conda build --croot "${CONDA_BLD_DIR}" conda/recipes/strings_udf --python=3.8 --output) test -e ${STRINGS_UDF_FILE} - echo "Upload strings_udf: ${STRINGS_UDF_FILE}" + echo "Upload strings_udf (python 3.8): ${STRINGS_UDF_FILE}" + gpuci_retry anaconda -t ${MY_UPLOAD_KEY} upload -u ${CONDA_USERNAME:-rapidsai} ${LABEL_OPTION} --skip-existing ${STRINGS_UDF_FILE} --no-progress + + export STRINGS_UDF_FILE=$(conda build --croot "${CONDA_BLD_DIR}" conda/recipes/strings_udf --python=3.9 --output) + test -e ${STRINGS_UDF_FILE} + echo "Upload strings_udf (python 3.9): ${STRINGS_UDF_FILE}" gpuci_retry anaconda -t ${MY_UPLOAD_KEY} upload -u ${CONDA_USERNAME:-rapidsai} ${LABEL_OPTION} --skip-existing ${STRINGS_UDF_FILE} --no-progress fi