From a62a7d4da4d1db47d0860029cb5ed5ff0fb8bc62 Mon Sep 17 00:00:00 2001 From: Jay Lee Date: Tue, 23 Apr 2019 13:38:27 -0400 Subject: [PATCH] more build stuff --- src/travis/linux-x86_64-before-install.sh | 11 ++++++----- src/travis/linux-x86_64-install.sh | 2 +- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/travis/linux-x86_64-before-install.sh b/src/travis/linux-x86_64-before-install.sh index b4f2e206..cb755506 100755 --- a/src/travis/linux-x86_64-before-install.sh +++ b/src/travis/linux-x86_64-before-install.sh @@ -8,14 +8,15 @@ echo "Installing StaticX deps..." sudo apt-get --yes install binutils patchelf mypath=$HOME +cpucount=$(nproc --all) # Compile latest OpenSSL OPENSSL_VER=1.1.1b wget https://www.openssl.org/source/openssl-$OPENSSL_VER.tar.gz tar xf openssl-$OPENSSL_VER.tar.gz cd openssl-$OPENSSL_VER ./config shared --prefix=$mypath/ssl -make -make install +make -j$cpucount > /dev/null +make install > /dev/null cd ~ # Compile latest Python @@ -24,9 +25,9 @@ wget https://www.python.org/ftp/python/$PYTHON_VER/Python-$PYTHON_VER.tar.xz tar xf Python-$PYTHON_VER.tar.xz cd Python-$PYTHON_VER ./configure --with-openssl=$mypath/ssl --enable-optimizations --enable-shared \ - --prefix=$mypath/python --with-ensurepip=upgrade -make -make install + --prefix=$mypath/python --with-ensurepip=upgrade > /dev/null +make -j$cpucount > /dev/null +make install > /dev/null cd ~ export LD_LIBRARY_PATH=~/ssl/lib:~/python/lib diff --git a/src/travis/linux-x86_64-install.sh b/src/travis/linux-x86_64-install.sh index cdfbb968..3ef6fe80 100755 --- a/src/travis/linux-x86_64-install.sh +++ b/src/travis/linux-x86_64-install.sh @@ -1,5 +1,5 @@ cd src -pyinstaller --clean --debug -F --distpath=gam $GAMOS-gam.spec +$python -OO -m PyInstaller --clean --debug -F --distpath=gam $GAMOS-gam.spec gam/gam version export GAMVERSION=`gam/gam version simple` cp LICENSE gam