This library encapsulates the Python virtualenv tool to provide an interface for managing virtual environment directories.
ve_dir()
Prints path to a private virtual environment for the given directory ($1).
ve_activate_script()
Prints path to a private virtual environment for the given directory ($1).
ve_activate()
Activates the private virtual environment for the given directory ($1).
find activation script or create it
load the activation script in this shell
ve_create()
Creates a private virtual environment for the given directory ($1). If the environment exists, this does nothing, to avoid disrupting it.
ve_update()
Updates the private virtual environment for the given directory ($1). If the environment does not exist, it will be created in that directory.
ve_delete()
Deletes the private virtual environment for the given directory ($1). Since the environment exists inside that directory, this function must be called before removing it.
ve_install()
Uses easy_install to install Python packages from PyPI, version control, local projects, or distribution files.
Each target may be specified using one of the following forms:
- <module>[-<version>]
- svn://<url> or {http,https}://<url>
- git+{http,https,ssh}://<url>
- bzr+{http,https}://<url>
- hg+{http,https}://<url>
Where the url may be of the form:
[<username>[:<password>]@]<hostname>[<path_to_repo>]
The easy_install tool extends the url specification with the following optional components:
- @<tag>: Specifies the branch/tag/version
- #egg=<module>: Specifies the module name
For more information, see the pip user guide:
https://pip.pypa.io/en/latest/user_guide/#installing-packages
$@ - List of package targets