From bc05237a7476ebe5dd6523c96d6b1e2cb1840b4a Mon Sep 17 00:00:00 2001 From: Kwabena N Amponsah Date: Wed, 5 Feb 2025 16:20:53 +0000 Subject: [PATCH] #76 Add boost patch for Python 3.10 --- scripts/install_boost.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/install_boost.sh b/scripts/install_boost.sh index 00a7f0e..8616a48 100755 --- a/scripts/install_boost.sh +++ b/scripts/install_boost.sh @@ -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}