2021-03-17 05:00:42 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
PREFIX=$(realpath $(dirname $0))
|
|
|
|
|
|
|
|
mkdir -p build
|
|
|
|
|
|
|
|
cd build
|
|
|
|
|
|
|
|
curl "https://www.python.org/ftp/python/2.7.18/Python-2.7.18.tgz" -o python.tar.gz
|
|
|
|
tar xzf python.tar.gz --strip-components=1
|
|
|
|
rm python.tar.gz
|
|
|
|
|
|
|
|
./configure --prefix "$PREFIX" --with-ensurepip=install
|
|
|
|
make -j$(nproc)
|
|
|
|
make install -j$(nproc)
|
|
|
|
|
|
|
|
cd ..
|
|
|
|
|
|
|
|
rm -rf build
|
2021-03-20 01:30:36 +01:00
|
|
|
bin/pip2 install -U pip==20.3.*
|
|
|
|
# Upgrade pip to latest supported version
|
2021-03-17 05:00:42 +01:00
|
|
|
|
2021-03-20 01:30:36 +01:00
|
|
|
bin/pip2 install numpy scipy pandas pycrypto whoosh bcrypt passlib
|