Skip to content

Commit

Permalink
update build_wheel.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
grlee77 committed Oct 26, 2023
1 parent 81eb241 commit 190b779
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions ci/build_wheel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,23 +44,35 @@ else
echo "apt package manager was found"
apt update
apt install yasm libopenslide-dev -y
dpkg -L libopenslide-dev

# temporarily add a sleep here to slow down the aarch64 workers to allow
# x86_64 cases to try to run instead of being cancelled if the aarch64
# case failed
sleep 10m
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}
./run build_local cuslide ${CMAKE_BUILD_TYPE}
cp -P -r cpp/plugins/cucim.kit.cuslide/install/lib/* ./install/lib/
cp -P -r cpp/plugins/cucim.kit.cuslide/install/bin/* ./install/bin/

./run build_local cumed ${CMAKE_BUILD_TYPE}
cp -P -r cpp/plugins/cucim.kit.cumed/install/lib/* ./install/lib/
cp -P -r cpp/plugins/cucim.kit.cumed/install/bin/* ./install/bin/

# problems: boost-header-only takes a long time to download

# Compile the Python bindings
./run build_local cucim ${CMAKE_BUILD_TYPE}

# Copy the resulting cucim pybind11 shared library into the Python package src folder
# cp -P python/install/lib/* python/cucim/src/cucim/clara/
cp -P python/build-${CMAKE_BUILD_TYPE}/lib/cucim/* python/cucim/src/cucim/clara/
cp -P python/install/lib/* python/cucim/src/cucim/clara/
# also need these files in the clara wheel
cp -P install/lib/* python/cucim/src/cucim/clara/

cd "${package_dir}"

Expand Down

0 comments on commit 190b779

Please sign in to comment.