Skip to content

Commit

Permalink
remove patches and install YASM and openslide dev libs via system pac…
Browse files Browse the repository at this point in the history
…kage manager
  • Loading branch information
grlee77 committed Oct 26, 2023
1 parent 7920ee3 commit 3d9f638
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 66 deletions.
18 changes: 14 additions & 4 deletions ci/build_wheel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,25 @@ pip install "cmake>=3.26.4" ninja

echo `which cmake`

# apply patch to omit building tests and benchmark binaries so libopenslide isn't required
git apply ci/cmake-omit-benchmarks-examples-tests.patch
git apply ci/disable-cucim-install-step.patch
# Building the libjpeg-turbo dependency requires YASM
# Also need to install openslide dev libraries on the system
if ! command -v apt &> /dev/null
then
echo "apt package manager not found, attempting to use yum"
yum install yasm openslide-devel -y
else
echo "apt package manager was found"
apt install yasm libopenslide-dev -y
fi

# First build the C++ lib using CMake via the run script
./run build_local libcucim ${CMAKE_BUILD_TYPE}

# Build the C++ cuslide and cumed plugins
./run build_local libcuslide ${CMAKE_BUILD_TYPE}
./run build_local libcumed ${CMAKE_BUILD_TYPE}

# problems: boost-header-only takes a long time to download
# Fails to build any files requiring libopenslide as it isn't on the system

# Compile the Python bindings
./run build_local cucim ${CMAKE_BUILD_TYPE}
Expand Down
49 changes: 0 additions & 49 deletions ci/cmake-omit-benchmarks-examples-tests.patch

This file was deleted.

13 changes: 0 additions & 13 deletions ci/disable-cucim-install-step.patch

This file was deleted.

0 comments on commit 3d9f638

Please sign in to comment.