-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from mariux64/add-python-3.6.2-and-install-mako…
…-templates Add Python 3.6.2 and install Mako templates for Python
- Loading branch information
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#! /bin/sh | ||
|
||
set -xe | ||
|
||
PKG=python | ||
VERSION=3.6.2 | ||
BUILD=0 | ||
PREFIX=/pkg/$PKG-$VERSION-$BUILD | ||
|
||
exec </dev/null | ||
|
||
mkdir -p $PREFIX | ||
cat >$PREFIX/profile <<-EOF | ||
PATH=$PREFIX/bin:\$PATH | ||
EOF | ||
. $PREFIX/profile | ||
|
||
mkdir -p $PREFIX/build | ||
cd $PREFIX/build | ||
|
||
test -e Python-$VERSION.tar.xz || wget https://www.python.org/ftp/python/$VERSION/Python-$VERSION.tar.xz | ||
test -d Python-$VERSION || tar xvf Python-$VERSION.tar.xz | ||
cd Python-$VERSION | ||
./configure \ | ||
--prefix=$PREFIX | ||
make -j $(nproc) | ||
make install | ||
|
||
python3 -m ensurepip | ||
pip3 install -I pip | ||
|
||
pip3 install ipython[all] | ||
pip3 install SciPy NumPy Matplotlib pandas SymPy nose | ||
pip3 install scikit-learn | ||
pip3 install seaborn | ||
pip3 install metaseq | ||
pip3 install Mako |