piston/packages/python/2.7.18/build.sh

22 lines
409 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 numpy scipy pandas pycrypto numba whoosh bcrypt passlib