Skip to content

Instantly share code, notes, and snippets.

@jhegge
Last active December 24, 2015 22:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jhegge/6871405 to your computer and use it in GitHub Desktop.
Save jhegge/6871405 to your computer and use it in GitHub Desktop.
Python 2.7 venv on CentOS 6.4
yum groupinstall "Development tools"
yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel
tar xf Python-2.7.5.tar.bz2
cd Python-2.7.5
./configure --prefix=/usr/local
make && make altinstall
wget https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py
python2.7 ez_setup.py
wget https://raw.github.com/pypa/pip/master/contrib/get-pip.py
python2.7 get-pip.py
pip-2.7 install virtualenvwrapper
# pysvn nightmare -- http://stackoverflow.com/questions/12511202/pysvn-1-7-6-on-rhel6-error-not-a-url-existing-file-or-requirement-spec
wget http://pysvn.barrys-emacs.org/source_kits/pysvn-1.7.8.tar.gz
tar xf pysvn-1.7.8.tar.gz
cd pysvn-1.7.8
cd Source
python setup.py configure
make
cd ../Tests
make
cd Source
python setup.py configure
make
cd ../Tests
make
cd ../Source
sudo mkdir /opt/PythonEnvs/py27/lib/python2.7/site-packages/pysvn
sudo cp pysvn/__init__.py /opt/PythonEnvs/py27/lib/python2.7/site-packages/pysvn
sudo cp pysvn/_pysvn_2_7.so /opt/PythonEnvs/py27/lib/python2.7/site-packages/pysvn
sudo chown -R builder:dev /opt/PythonEnvs/py27/lib/python2.7/site-packages/pysvn
# cp the contents of python-rpm into site-packages manually, compiled lib
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment