pythonz

Python installation manager supporting CPython, Stackless, PyPy and Jython


Project maintained by saghul Hosted on GitHub Pages — Theme by mattgraham

Overview

pythonz makes it easy for you to compile and install different Python versions either system-wide or per user. It supports installing CPython, Stackless, PyPy and Jython.

Installing it

It's really easy to install pythonz, to install it for your user (that is, in your $HOME) just do as follows:

curl -kL https://raw.githubusercontent.com/saghul/pythonz/master/pythonz-install | bash

After that add this to your .bashrc file:

[[ -s $HOME/.pythonz/etc/bashrc ]] && source $HOME/.pythonz/etc/bashrc

Using it

Once pythonz is installed you can go ahead and install some Python versions:

pythonz install 2.7.3
pythonz install -t stackless 2.7.2
pythonz install -t jython 2.5.2
pythonz install -t pypy --url https://bitbucket.org/pypy/pypy/downloads/pypy-1.8-osx64.tar.bz2 1.8

Then you can create some virtualenvs (using virtualenvwrapper) to use the installed pythons:

mkvirtualenv -p $(pythonz locate 2.7.2) cpython272 && deactivate
mkvirtualenv -p $(pythonz locate -t stackless 2.7.2) stackless272 && deactivate
mkvirtualenv -p $(pythonz locate -t jython 2.5.2) jython252 && deactivate
mkvirtualenv -p $(pythonz locate -t pypy 2.3.1) pypy231 && deactivate

Then you can use workon and deactivate as usual.