From 1584885a0e6447ded28f78a59e3f303a25c7c0f6 Mon Sep 17 00:00:00 2001 From: Bradley Dice Date: Thu, 5 Sep 2024 15:42:17 -0500 Subject: [PATCH] Fix wheel tests for Rocky Linux 8. (#774) Recently RAPIDS added wheel tests on Rocky Linux 8. This requires a change to support installing dependencies with `yum` on Rocky Linux 8. Authors: - Bradley Dice (https://github.com/bdice) Approvers: - James Lamb (https://github.com/jameslamb) URL: https://github.com/rapidsai/cucim/pull/774 --- ci/test_wheel.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/ci/test_wheel.sh b/ci/test_wheel.sh index 6b0f9a10b..70f28c6ad 100755 --- a/ci/test_wheel.sh +++ b/ci/test_wheel.sh @@ -11,8 +11,13 @@ python -m pip install $(echo ./dist/cucim*.whl)[test] CUDA_MAJOR_VERSION=${RAPIDS_CUDA_VERSION:0:2} -DEBIAN_FRONTEND=noninteractive apt update -DEBIAN_FRONTEND=noninteractive apt install -y --no-install-recommends libopenslide0 +if type -f yum > /dev/null 2>&1; then + yum update -y + yum install -y openslide +else + DEBIAN_FRONTEND=noninteractive apt update + DEBIAN_FRONTEND=noninteractive apt install -y --no-install-recommends libopenslide0 +fi if [[ ${CUDA_MAJOR_VERSION} == "11" ]]; then # Omit I/O-related tests in ./python/cucim/tests due to known CUDA bug