Skip to content

Commit

Permalink
print openslide location during wheel testing
Browse files Browse the repository at this point in the history
  • Loading branch information
grlee77 committed Nov 17, 2023
1 parent cac9f41 commit ccaa73c
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions ci/test_wheel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit ccaa73c

Please sign in to comment.