From ccaa73ca0c1823124c861cd413ea8a50e28d3851 Mon Sep 17 00:00:00 2001 From: Gregory Lee Date: Fri, 17 Nov 2023 08:10:49 -0500 Subject: [PATCH] print openslide location during wheel testing --- ci/test_wheel.sh | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/ci/test_wheel.sh b/ci/test_wheel.sh index aff107c62..cbd2b6c14 100755 --- a/ci/test_wheel.sh +++ b/ci/test_wheel.sh @@ -9,13 +9,22 @@ RAPIDS_PY_WHEEL_NAME="cucim_${RAPIDS_PY_CUDA_SUFFIX}" rapids-download-wheels-fro # echo to expand wildcard before adding `[extra]` requires for pip python -m pip install $(echo ./dist/cucim*.whl)[test] -# append folder containing libopenslide.so.0 to LD_LIBRARY_PATH -export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:/usr/lib/x86_64-linux-gnu" - # Run smoke tests for aarch64 pull requests if [[ "$(arch)" == "aarch64" && ${RAPIDS_BUILD_TYPE} == "pull-request" ]]; then python ./ci/wheel_smoke_test.py else + # verify if openslide package has been installed + echo `dpkg -l | grep openslide` + + # append folder containing libopenslide.so.0 to LD_LIBRARY_PATH (should not be needed) + export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:/usr/lib/$(arch)-linux-gnu" + + # try importing like openslide-python does + echo `python -c "import ctypes; print(ctypes.cdll.LoadLibrary('libopenslide.so.0')); print('\n')"` + + # try importing with full path + echo `python -c "import ctypes; print(ctypes.cdll.LoadLibrary('/usr/lib/x86_64-linux-gnu/libopenslide.so.0')); print('\n')"` + # TODO: revisit enabling imagecodecs package during testing python -m pytest ./python/cucim fi