-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpython.recipe
More file actions
20 lines (13 loc) · 773 Bytes
/
python.recipe
File metadata and controls
20 lines (13 loc) · 773 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash
set -e
echo "This recipe is for installing a new version of Python on Ubuntu 14.04"
mkdir -p $HOME/src
cd $HOME/src
VERS=2.7.9
wget -c https://www.python.org/ftp/python/$VERS/Python-$VERS.tar.xz
ionice -c3 nice -n 20 tar xf Python-$VERS.tar.xz
cd Python-$VERS
sudo apt-get install -y gcc-multilib g++-multilib libffi-dev libffi6 libffi6-dbg python-crypto python-mox3 python-pil python-ply libssl-dev zlib1g-dev libbz2-dev libexpat1-dev libbluetooth-dev libgdbm-dev dpkg-dev quilt autotools-dev libreadline-dev libtinfo-dev libncursesw5-dev tk-dev blt-dev libssl-dev zlib1g-dev libbz2-dev libexpat1-dev libbluetooth-dev libsqlite3-dev libgpm2 mime-support netbase net-tools bzip2
./configure --prefix /opt/python-$VERS --enable-ipv6
make -j5
make install