Alternative implementation of Python virtual environments.
As command: localpyenv.py [options] directory
As Python module: python -m localpyenv [options] directory
Options:
-h, --help show this help message and exit
-s, --system-site-packages
Make system site packages available.
-u, --user-site-packages
Make user site packages available.
Place the script localpyenv.py either into a directory of the PATH or into one directory of Python's path.
-
Initialize the environment
localpyenv.py -s myenv
-
Link files from the used parent installation
myenv/bin/create_environment.sh
In order to us a Python environment, source its activate script
source myenv/bin/activate.sh
After the use, deactivate the environment
deactivate
Developed in order to implement a few things in a different way than in virtualenv.
- Make user site packages available
- Allow recursive environments
- Use the "site.py" coming with Python 2.7
- Different system site packages on platform 'darwin' appear with and without virtualenv
- Creates environments for Anaconda