sys/tool/virtualenv

Python virtualenv Tool Support

Script Overview

This library encapsulates the Python virtualenv tool to provide an interface for managing virtual environment directories.

Dependency Graph

sys/tool/virtualenv: Library Dependencies

View color source code (raw) for this file

View reStructuredText (rst) source code for this page

Paths

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).

Activation

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

Management

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.

easy_install Support

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


View the Developer Guide Index

View the Reference Manual Index


Generated on Thu Jun 21 07:00:30 PDT 2018 by mcsh d14 v0.24.0.