piston/packages/python/2.7.18/build.sh

24 lines
470 B
Bash
Raw Normal View History

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
bin/pip2 install -U pip==20.3.*
# Upgrade pip to latest supported version
2021-03-17 05:00:42 +01:00
bin/pip2 install numpy scipy pycrypto whoosh bcrypt passlib