Created
February 20, 2014 14:01
-
-
Save sramam/9114208 to your computer and use it in GitHub Desktop.
installing python 2.7 on centos63
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
#!/bin/sh | |
set -e | |
mkdir -p ~/opt | |
cd ~/opt | |
yum groupinstall -y "Development tools" | |
yum install -y zlib-devel bzip2-devel openssl-devel ncurses-devel | |
set -e | |
curl -O http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tar.bz2 | |
tar xf Python-2.7.3.tar.bz2 | |
cd Python-2.7.3 | |
./configure --prefix=/usr/local | |
make && make altinstall | |
ln -s /usr/local/bin/python2.7 /usr/local/bin/python | |
cd ~/opt | |
curl -O https://pypi.python.org/packages/source/s/setuptools/setuptools-2.0.tar.gz | |
tar -xzf setuptools-2.0.tar.gz | |
cd setuptools-2.0 | |
python2.7 setup.py install | |
cd ~/opt | |
curl -O https://pypi.python.org/packages/source/p/pip/pip-1.5.tar.gz | |
tar -xzf pip-1.5.tar.gz | |
cd pip-1.5 | |
python2.7 setup.py install | |
cd ~/opt | |
curl -O https://pypi.python.org/packages/source/d/distribute/distribute-0.6.27.tar.gz | |
tar xf distribute-0.6.27.tar.gz | |
cd distribute-0.6.27 | |
python2.7 setup.py install | |
cd ~/opt | |
git clone https://github.com/fireteam/virtualenv-tools.git | |
cd virtualenv-tools | |
python2.7 setup.py install | |
pip2.7 install --no-use-wheel virtualenv | |
pip2.7 install --no-use-wheel virtualenv-tools | |
pip2.7 install --no-use-wheel uwsgi | |
cd ~ | |
rm -rf opt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment