mirror of
https://github.com/GAM-team/GAM.git
synced 2026-07-03 20:31:35 +00:00
Custom OpenSSL/Python compile
This commit is contained in:
@@ -4,9 +4,39 @@ echo "RUNNING: apt dist-upgrade..."
|
|||||||
sudo apt-get --yes dist-upgrade > /dev/null
|
sudo apt-get --yes dist-upgrade > /dev/null
|
||||||
echo "Installing StaticX deps..."
|
echo "Installing StaticX deps..."
|
||||||
sudo apt-get --yes install binutils patchelf
|
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..."
|
echo "Upgrading pip packages..."
|
||||||
pip freeze > upgrades.txt
|
$pip freeze > upgrades.txt
|
||||||
pip install --upgrade -r upgrades.txt
|
$pip install --upgrade -r upgrades.txt
|
||||||
pip install -r src/requirements.txt
|
$pip install -r src/requirements.txt
|
||||||
pip install pyinstaller
|
$pip install pyinstaller
|
||||||
pip install staticx
|
$pip install staticx
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ powershell Install-WindowsFeature Net-Framework-Core
|
|||||||
cinst -y --forcex86 python3
|
cinst -y --forcex86 python3
|
||||||
cinst -y --forcex86 openssl.light
|
cinst -y --forcex86 openssl.light
|
||||||
/c/Program\ Files/OpenSSL/openssl version
|
/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
|
export PATH=$PATH:/c/Python37/scripts
|
||||||
cinst -y wixtoolset
|
cinst -y wixtoolset
|
||||||
pip install --upgrade pip
|
pip install --upgrade pip
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ powershell Install-WindowsFeature Net-Framework-Core
|
|||||||
cinst -y python3
|
cinst -y python3
|
||||||
cinst -y openssl.light
|
cinst -y openssl.light
|
||||||
/c/Program\ Files/OpenSSL/openssl version
|
/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
|
export PATH=$PATH:/c/Python37/scripts
|
||||||
cinst -y wixtoolset
|
cinst -y wixtoolset
|
||||||
pip install --upgrade pip
|
pip install --upgrade pip
|
||||||
|
|||||||
Reference in New Issue
Block a user