|
@ -2,17 +2,19 @@ |
|
|
|
|
|
|
|
|
set -eux # -x for verbose logging to juju debug-log |
|
|
set -eux # -x for verbose logging to juju debug-log |
|
|
|
|
|
|
|
|
|
|
|
VERSION="2.7.5" |
|
|
|
|
|
|
|
|
## |
|
|
## |
|
|
## INSTALL Python 2.7.2 |
|
|
|
|
|
|
|
|
## INSTALL Python |
|
|
## |
|
|
## |
|
|
|
|
|
|
|
|
apt-get install wget bzip2 build-essential -y --force-yes |
|
|
apt-get install wget bzip2 build-essential -y --force-yes |
|
|
apt-get install libreadline-dev libbz2-dev libz-dev libssl-dev libsqlite3-dev libgdbm-dev libldap2-dev -y --force-yes |
|
|
apt-get install libreadline-dev libbz2-dev libz-dev libssl-dev libsqlite3-dev libgdbm-dev libldap2-dev -y --force-yes |
|
|
cd /tmp |
|
|
cd /tmp |
|
|
wget http://www.python.org/ftp/python/2.7.2/Python-2.7.2.tar.bz2 |
|
|
|
|
|
tar xjf Python-2.7.2.tar.bz2 |
|
|
|
|
|
cd Python-2.7.2 |
|
|
|
|
|
./configure --prefix=/opt/apps/python-2.7.2 |
|
|
|
|
|
|
|
|
wget http://www.python.org/ftp/python/$VERSION/Python-$VERSION.tar.bz2 |
|
|
|
|
|
tar xjf Python-$VERSION.tar.bz2 |
|
|
|
|
|
cd Python-$VERSION |
|
|
|
|
|
./configure --prefix=/opt/apps/python-$VERSION |
|
|
make |
|
|
make |
|
|
make install |
|
|
make install |
|
|
|
|
|
|
|
@ -20,11 +22,14 @@ make install |
|
|
## INSTALL DISTRIBUTE/PIP/VIRTUALENV |
|
|
## INSTALL DISTRIBUTE/PIP/VIRTUALENV |
|
|
## |
|
|
## |
|
|
|
|
|
|
|
|
|
|
|
PYTHON_BASE="/opt/apps/python-$VERSION" |
|
|
|
|
|
PYTHON_BIN="$PYTHON_BASE/bin" |
|
|
|
|
|
|
|
|
cd /tmp |
|
|
cd /tmp |
|
|
wget http://python-distribute.org/distribute_setup.py |
|
|
wget http://python-distribute.org/distribute_setup.py |
|
|
/opt/apps/python-2.7.2/bin/python ./distribute_setup.py |
|
|
|
|
|
/opt/apps/python-2.7.2/bin/easy_install pip |
|
|
|
|
|
/opt/apps/python-2.7.2/bin/pip install virtualenv |
|
|
|
|
|
|
|
|
"$PYTHON_BIN"/python ./distribute_setup.py |
|
|
|
|
|
"$PYTHON_BIN"/easy_install pip |
|
|
|
|
|
"$PYTHON_BIN"/pip install virtualenv |
|
|
|
|
|
|
|
|
## |
|
|
## |
|
|
## MAKE A DEFAULT VIRTUAL ENV |
|
|
## MAKE A DEFAULT VIRTUAL ENV |
|
@ -32,5 +37,5 @@ wget http://python-distribute.org/distribute_setup.py |
|
|
|
|
|
|
|
|
cd /srv |
|
|
cd /srv |
|
|
mkdir -p /srv/virtualenv |
|
|
mkdir -p /srv/virtualenv |
|
|
/opt/apps/python-2.7.2/bin/virtualenv /srv/virtualenv/default --no-site-packages |
|
|
|
|
|
|
|
|
$PYTHON_BIN/virtualenv /srv/virtualenv/default --no-site-packages |
|
|
|
|
|
|