Skip to content

Commit

Permalink
#76 Add boost patch for Python 3.10
Browse files Browse the repository at this point in the history
  • Loading branch information
kwabenantim committed Feb 5, 2025
1 parent 09cbdbf commit bc05237
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions scripts/install_boost.sh
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,13 @@ tar -xjf boost_${ver_si_on}.tar.bz2

src_dir="$(pwd)/boost_${ver_si_on}"

# Fix for Python 3.10+ in Boost <= 1.86.x
# https://github.com/boostorg/python/commit/cbd2d9f033c61d29d0a1df14951f4ec91e7d05cd
if [[ (${major} -eq 1) && (${minor} -le 86) ]]; then # Boost <= 1.86.x
cd ${src_dir}/libs/python/src
sed -i.bak 's#_Py_fopen#fopen#g' exec.cpp
fi

# Build and install
install_dir=${base_dir}/opt/boost/${version}
mkdir -p ${install_dir}
Expand Down

0 comments on commit bc05237

Please sign in to comment.