Skip to content

Commit

Permalink
WIP: Start every "before-build" with a clean slate
Browse files Browse the repository at this point in the history
We need to start every "before-build" with an empty install directory,
otherwise the repaired wheel will contain the wrong boost libraries.
(It looks like `CMake` gets confused and picks the first matching
`libboost_python*` and `libboost_numpy*` library files, which may be
from a previous build.)
  • Loading branch information
gmloose committed Mar 9, 2024
1 parent 9b0d480 commit 029ae24
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cibuildwheel/before_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ function build_boost_python
nproc=$(python -c 'import multiprocessing as mp; print(mp.cpu_count())')
inc_dir=$(python -c 'import sysconfig as sc; print(sc.get_path("include"))')
cd "${BOOST_BUILD_DIR}/boost"
rm -rf "${BOOST_INSTALL_DIR}"
./bootstrap.sh --prefix="${BOOST_INSTALL_DIR}" \
--with-libraries=python \
--with-toolset=gcc
Expand Down

0 comments on commit 029ae24

Please sign in to comment.