Create virtualenv environments.
New in version 0.17.0.
salt.modules.virtualenv_mod.
create
(path, venv_bin=None, system_site_packages=False, distribute=False, clear=False, python=None, extra_search_dir=None, never_download=None, prompt=None, pip=False, symlinks=None, upgrade=None, user=None, use_vt=False, saltenv='base')¶Create a virtualenv
virtualenv.venv_bin
.Use VT terminal emulation (see output while installing)
New in version 2015.5.0.
Specify a different environment. The default environment is base
.
New in version 2014.1.0.
Note
The runas
argument is deprecated as of 2014.1.0. user
should be
used instead.
CLI Example:
salt '*' virtualenv.create /path/to/new/virtualenv
salt.modules.virtualenv_mod.
get_resource_content
(venv, package_or_requirement, resource_name)¶Returns the content of a resource of a package or a distribution inside a virtualenv
New in version 2015.5.0.
CLI Example:
salt '*' virtualenv.get_resource_content /path/to/my/venv my_package my/resource.xml
salt.modules.virtualenv_mod.
get_resource_path
(venv, package_or_requirement, resource_name)¶Returns the path to a resource of a package or a distribution inside a virtualenv
New in version 2015.5.0.
CLI Example:
salt '*' virtualenv.get_resource_path /path/to/my/venv my_package my/resource.xml
salt.modules.virtualenv_mod.
get_site_packages
(venv)¶Returns the path to the site-packages directory inside a virtualenv
CLI Example:
salt '*' virtualenv.get_site_packages /path/to/my/venv