From 5466a96de6c0d484cbaade79fe1d91c04b94bf9f Mon Sep 17 00:00:00 2001 From: Yashas Ambati Date: Thu, 20 Feb 2025 00:56:31 -0500 Subject: [PATCH] Install boost from source, delete CMakeCache before building --- build_tools/wheels/cibw_before_all.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/build_tools/wheels/cibw_before_all.sh b/build_tools/wheels/cibw_before_all.sh index 392693624..f922b46e6 100644 --- a/build_tools/wheels/cibw_before_all.sh +++ b/build_tools/wheels/cibw_before_all.sh @@ -8,10 +8,18 @@ PROJECT_DIR="$2" export PYTHON="python${PYTHON_VERSION}" -apt-get install -y wget libicu-dev python3-pip python3-setuptools libboost-all-dev ninja-build +yum install -y wget ninja-build pip install -r $PROJECT_DIR/python/dev_requirements.txt +wget https://archives.boost.io/release/1.87.0/source/boost_1_87_0.tar.gz +tar -xzf boost_1_87_0.tar.gz +cd boost_1_87_0 +./bootstrap.sh --prefix=/opt/boost +./b2 install --prefix=/opt/boost --with=all + +cd .. rm -rf $PROJECT_DIR/build +rm -rf CMakeCache.txt CMakeFiles export CMAKE_GENERATOR=Ninja cmake $PROJECT_DIR \