Skip to content

michs/localenv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Localenv

Alternative implementation of Python virtual environments.

Usage

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.

Installation

Place the script localpyenv.py either into a directory of the PATH or into one directory of Python's path.

Creation of a Python environment

  1. Initialize the environment

    localpyenv.py -s myenv

  2. Link files from the used parent installation

    myenv/bin/create_environment.sh

Using a Python environment

In order to us a Python environment, source its activate script

source myenv/bin/activate.sh

After the use, deactivate the environment

deactivate

Rationale

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages