diff --git a/src/travis/linux-x86_64-before-install.sh b/src/travis/linux-x86_64-before-install.sh index bb7eaa3a..9098d320 100755 --- a/src/travis/linux-x86_64-before-install.sh +++ b/src/travis/linux-x86_64-before-install.sh @@ -4,9 +4,39 @@ echo "RUNNING: apt dist-upgrade..." sudo apt-get --yes dist-upgrade > /dev/null echo "Installing StaticX deps..." sudo apt-get --yes install binutils patchelf + +mypath=$HOME +# 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 +cd ~ + +# Compile latest Python +PYTHON_VER=3.7.3 +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 +cd ~ + +export LD_LIBRARY_PATH=~/ssl/lib:~/python/lib +$python=~/python/bin/python3 +$pip=~/python/bin/pip3 + +$python -V +ls -al ~/python/bin + echo "Upgrading pip packages..." -pip freeze > upgrades.txt -pip install --upgrade -r upgrades.txt -pip install -r src/requirements.txt -pip install pyinstaller -pip install staticx +$pip freeze > upgrades.txt +$pip install --upgrade -r upgrades.txt +$pip install -r src/requirements.txt +$pip install pyinstaller +$pip install staticx diff --git a/src/travis/windows-x86-before-install.sh b/src/travis/windows-x86-before-install.sh index 7bc39909..059b1b1b 100755 --- a/src/travis/windows-x86-before-install.sh +++ b/src/travis/windows-x86-before-install.sh @@ -2,7 +2,7 @@ powershell Install-WindowsFeature Net-Framework-Core cinst -y --forcex86 python3 cinst -y --forcex86 openssl.light /c/Program\ Files/OpenSSL/openssl version -cp /c/Program\ Files/OpenSSL/*.dll /c/Python37/DLLs +cp -v /c/Program\ Files/OpenSSL/*.dll /c/Python37/DLLs export PATH=$PATH:/c/Python37/scripts cinst -y wixtoolset pip install --upgrade pip diff --git a/src/travis/windows-x86_64-before-install.sh b/src/travis/windows-x86_64-before-install.sh index cd213f4e..19c6b702 100755 --- a/src/travis/windows-x86_64-before-install.sh +++ b/src/travis/windows-x86_64-before-install.sh @@ -2,7 +2,7 @@ powershell Install-WindowsFeature Net-Framework-Core cinst -y python3 cinst -y openssl.light /c/Program\ Files/OpenSSL/openssl version -cp "/c/Program Files/OpenSSL/*.dll" "/c/Python37/DLLs" +cp -v "/c/Program Files/OpenSSL/*.dll" "/c/Python37/DLLs" export PATH=$PATH:/c/Python37/scripts cinst -y wixtoolset pip install --upgrade pip