xpyenv - makes virtual python environments easy

xpyenv is a simple script done in python that download ez_setup and virtual-python from peak.telecommunity.com, then generate a python 'root' virtual environment, that is then used to generate other virtual environments :).

Usage

1- download xpyenv.tar.gz
2- untar it with: tar -zxvf xpyenv.tar.gz
You will find a script called xpyenv.py
3- hide xpyenv in your home (this is completly optional, only to have the script stored in our ~/ home dir for future usage, so do: mv xpyenv.py ~/.xpyenv.py
4- execute it! do: ~/.xpyenv.py
You will see the following output:
sakura@sakura-ubunted:~$ ~/.xpyenv.py
Ejecutar: xpyenv
Parametros:
python2.4 / Crea un python virtual 2.4
python2.5 / Crea un python virtual 2.5
python2.6 / Crea un python virtual 2.6
This means that to generate a python2.4 virtual environment, you should do: ~/.xpyenv python2.4
or to generate a python2.5 environment, do: ~/.xpyenv python2.5
IMPORTANT: you need python2.4 python2.5 and python2.6 installed in your system, at debian / ubuntu simple do:
$ apt-get install python2.4 python2.4-dev python2.5 python2.5-dev python2.6 python2.6-dev
5- Use it! once the script finish, simple open a new terminal and type:
py24
or py25 or py26 to enter to your virtualenvironment ! ^^
Example:
sakura@sakura-ubunted:~$ py26
(python2.6)sakura@sakura-ubunted:~$
Note how the prompt change :) ...
Be happy! :D