GitHub - kvbik/rvirtualenv: relocatable python virtual environment (original) (raw)

relocatable python virtual environment

package inspired a lot by ian bicking's virtualenv but created in fashion that it can be relocated freely through the filesystem, renamed, backuped, ...

second nice feature is, that you can customize your python environment via {{ENV}}/pythonrc.py in any curious way you want.

works with python3, pypy

install

you can install this package from pypi:

pip install RVirtualEnv

or

easy_install RVirtualEnv

or just clone this repository

git clone http://github.com/kvbik/rvirtualenv

you should definitely try development version

to create new virtual environment just call:

rvirtualenv ~/PYENV1

or directly from this repo

./rvirtualenv.py ~/PYENV2

usage

to enable environment, do:

on unix

export PYTHONPATH=~/PYENV1:$PYTHONPATH

on windows

set PYTHONPATH=c:\PYENV1;%PYTHONPATH%

after that, you can call any python command (eg: pip or easy_install, ipython, ...) and it will have access to your virtual environment.

if you don't want to mess up with environment, just call our wrapper:

on unix

~/PYENV1/bin/python [any [params]]

on win

c:\PYENV1\bin\python.bat [any [params]]

it should work with mod-wsgi python-path option as well, and you can enable it in runtime via site.addsitedir(venv_directory).

tests

if you are interested in testing this package, it should support many standard ways of running tests. nose is used for test discovery.

you can run any of these commands:

package was tested on:

but there is no build environment yet.

why

main reasons why this package came into existence:

todo

you can use the issue tracker for more (or in TODO.rst in this repo) but some of the long term goals are here

development

see http://github.com/kvbik/rvirtualenv

changelog

0.3.x

aka branch releases/rvirtualenv-0.3

0.3.2

0.3.1

0.3.0

0.2.x

aka branch releases/rvirtualenv-0.2

0.2.3

0.2.2

initial versions (<=0.2.2)