Skip to content

Commit

Permalink
temporarily disable install step of cucim bindings build
Browse files Browse the repository at this point in the history
  • Loading branch information
grlee77 committed Oct 26, 2023
1 parent e2356f8 commit a118cfb
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 4 deletions.
9 changes: 6 additions & 3 deletions ci/build_wheel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ set -euo pipefail
package_name="cucim"
package_dir="python/cucim"

CMAKE_BUILD_TYPE="release"

source rapids-configure-sccache
source rapids-date-string

Expand Down Expand Up @@ -37,16 +39,17 @@ git apply ci/cmake-omit-benchmarks-examples-tests.patch


# First build the C++ lib using CMake via the run script
./run build_local libcucim release
./run build_local libcucim ${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 release
./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/install/lib/* python/cucim/src/cucim/clara/
cp -P python/build-${CMAKE_BUILD_TYPE}/lib/cucim/* python/cucim/src/cucim/clara/

cd "${package_dir}"

Expand Down
13 changes: 13 additions & 0 deletions ci/disable-cucim-install-step.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/run b/run
index ca4cfd4..832c383 100755
--- a/run
+++ b/run
@@ -370,7 +370,7 @@ build_local_cucim_() {
-DPYTHON_LIBRARY=${python_library} \
-DPYTHON_INCLUDE_DIR=${python_include_dir}
${CMAKE_CMD} --build ${build_folder} --config ${build_type_str} --target cucim -- -j $(nproc)
- ${CMAKE_CMD} --build ${build_folder} --config ${build_type_str} --target install -- -j $(nproc)
+ # ${CMAKE_CMD} --build ${build_folder} --config ${build_type_str} --target install -- -j $(nproc)

popd
}
2 changes: 1 addition & 1 deletion run
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ build_local_cucim_() {
-DPYTHON_LIBRARY=${python_library} \
-DPYTHON_INCLUDE_DIR=${python_include_dir}
${CMAKE_CMD} --build ${build_folder} --config ${build_type_str} --target cucim -- -j $(nproc)
${CMAKE_CMD} --build ${build_folder} --config ${build_type_str} --target install -- -j $(nproc)
# ${CMAKE_CMD} --build ${build_folder} --config ${build_type_str} --target install -- -j $(nproc)

popd
}
Expand Down

0 comments on commit a118cfb

Please sign in to comment.