Note: This information is old. Please head to Github collective/buildout.python for recent information.
Here are short instructions how to install all versions (2.4, 2.5, 2.6, 2.7 and 3.1) of Python interpreters on UNIX system. The instructions were tested on Ubuntu 10.04 Lucid Lynx Linux but should work on other systems as is. The installation is based of downloading, compiling and installing different Pythons and their libraries using buildout tool. A buildout configuration for doing this is maintained by a Plone community.
This buildout is especially useful to get Python 2.4 properly running under the latest Ubuntu 10.04 Lucid Lynx. This is because Ubuntu repositories won’t ship with Python 2.4 packages anymore.
The installation will also include static compilation of some very popular libraries. These are dependencies for other Python packages including, but not limited, to
- libjpeg
- Python imaging library
- readline
1. Prerequisites
- Some Python version is installed (OS default)
- GCC compiler is installed (sudo apt-get install build-essential)
- Subversion tool is installed (sudo apt-get install subversion)
2. Running it
svn co http://svn.plone.org/svn/collective/buildout/python/
cd python
python bootstrap.py
bin/buildout
3. Using it
All Pythons are under virtualenv installations. This means that you can activate one Python configuration for your shell once easily (python command will run under different Python versions).
Activating Python 2.4
source python/python-2.4/bin/activate
(python-2.4)moo@murskaamo:~/code$ python -V
Python 2.4.6
Check that Python Imaging Library works
python
Python 2.4.6 (#1, Jul 16 2010, 10:31:46)
[GCC 4.4.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import PIL
(No exceptions raised, Python Imaging Library works well).
Subscribe to RSS feed Follow me on Twitter
Follow me on Facebook Follow me Google+