mirror of
https://github.com/GAM-team/GAM.git
synced 2026-06-28 09:51:36 +00:00
clean and optimize python build
This commit is contained in:
@@ -53,11 +53,16 @@ else
|
||||
tar xf Python-$BUILD_PYTHON_VERSION.tar.xz
|
||||
fi
|
||||
cd Python-$BUILD_PYTHON_VERSION
|
||||
if [[ "$dist" == "bionic" ]]; then
|
||||
echo "running bionic make clean"
|
||||
make clean
|
||||
fi
|
||||
echo "Compiling Python $BUILD_PYTHON_VERSION..."
|
||||
safe_flags="--with-openssl=$mypath/ssl --enable-shared --prefix=$mypath/python --with-ensurepip=upgrade"
|
||||
unsafe_flags="--enable-optimizations --with-lto"
|
||||
|
||||
if [ ! -e Makefile ]; then
|
||||
./configure $safe_flags # $unsafe_flags > /dev/null
|
||||
./configure $safe_flags $unsafe_flags > /dev/null
|
||||
fi
|
||||
make -j$cpucount -s
|
||||
RESULT=$?
|
||||
|
||||
Reference in New Issue
Block a user