From 61181013fca3eb7e8942e836b4c602af2316aaed Mon Sep 17 00:00:00 2001 From: "joey.ljy" Date: Fri, 19 Apr 2024 09:21:05 -0700 Subject: [PATCH] Build boost without python in setup script (#9484) Summary: Velox does not require the boost-python module. Adding the `--without-python` parameter can reduce the compilation time for Boost and also avoid some Python compatibility issues. Pull Request resolved: https://github.com/facebookincubator/velox/pull/9484 Reviewed By: Yuhta Differential Revision: D56144983 Pulled By: kgpai fbshipit-source-id: cbe6bd7d1d60fe58f461c8e89eaf7a310231e900 --- scripts/setup-centos8.sh | 2 +- scripts/setup-ubuntu.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/setup-centos8.sh b/scripts/setup-centos8.sh index 1a1157af5089..7fac916d4c62 100755 --- a/scripts/setup-centos8.sh +++ b/scripts/setup-centos8.sh @@ -101,7 +101,7 @@ function install_boost { ( cd boost ./bootstrap.sh --prefix=/usr/local - ./b2 "-j$(nproc)" -d0 install threading=multi + ./b2 "-j$(nproc)" -d0 install threading=multi --without-python ) } diff --git a/scripts/setup-ubuntu.sh b/scripts/setup-ubuntu.sh index 822027ee34f6..c71b5044edf9 100755 --- a/scripts/setup-ubuntu.sh +++ b/scripts/setup-ubuntu.sh @@ -96,7 +96,7 @@ function install_fmt { function install_boost { github_checkout boostorg/boost "${BOOST_VERSION}" --recursive ./bootstrap.sh --prefix=/usr/local - ${SUDO} ./b2 "-j$(nproc)" -d0 install threading=multi + ${SUDO} ./b2 "-j$(nproc)" -d0 install threading=multi --without-python } function install_folly {