Using a distribution with the latest stable versions of Python, you can test your code with these versions. Today it is very easy for developers to test their code with several versions of Python.
Gentoo probably gives you maximum flexibility while using multiple versions of Python at the same time:
(2.5) 2.5.4-r4 (2.6) 2.6.6-r2 or 2.6.7-r2 (2.7) 2.7.2-r3 (3.1) 3.1.4-r3 (3.2) 3.2.2
This prevents you from testing some older versions that are very popular on Debian based systems, for example.
pythonbrew allows you to compile and install multiple versions of Python in your home directory, no root access is required.
This is a quick test of your code with multiple versions of Python thanks tox '. By default, tox will find your system python (s), but you can, for example, install custom interpreters that you create with pythonbrew.
Here you can use tox.ini with Jenkins, for continuous integration. With this installation, you can install jenkins, then su-jenkins, and use pythonbrew to install all versions of Python that you want to test.
[tox] envlist = py267,py271,py272 [testenv]
It's easy, and it doesn't matter which Linux distribution you use.
For more information on setting up Jenkins, see the Tox website.
cakebread
source share