relocatable python virtual environment
Project description
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 main feature is, that you can customize your python environment via {{ ENV }}/pythonrc.py in any curious way you want.
install
you can install this package from pypi:
pip install RVirtualEnv # or easy_install RVirtualEnv # or just clone this repository
to create new virtual environment just call:
virtualenv ~/PYENV1 # or directly from this repo ./virtualenv.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\Scripts\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:
python setup.py test
nosetests
./tests/test_all.py
in the setup.py case you just have to wait a little, until setuptools_dummy are downloaded, because it is a build dependency.
package was tested on:
archlinux with python 2.6
ms windows with python 2.6
debian lenny with python 2.5
debian etch with python 2.4
but there is no build environment yet.
todo
it does not have all the features, that ian’s virtualenv has, because i don’t know, which one of them are important..
probably no-site-packages is important and it can be simulated by patching your pythonrc.py file.
boot scripts even ian does not like very much and i think there should be some scripts or install of some package should be called.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file RVirtualEnv-0.2.1.tar.gz
.
File metadata
- Download URL: RVirtualEnv-0.2.1.tar.gz
- Upload date:
- Size: 38.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7464f7179fdfe871b730965a4d03b8354d5929d4c4c1e53e3191c522ebf23b74 |
|
MD5 | 3a862945e9bd097f30ff1d8d6df81638 |
|
BLAKE2b-256 | 441feb3174ced517af9872a283408c4b86676ba497914cce7ee14d59cc85af3a |