Module Expr Str ImportFrom alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Str FunctionDef arguments args defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad body Expr Str Assign NameStore Dict Str Str Str Str NameLoad NameLoad Str Dict If CompareNotIn Str NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str Str Return NameLoad If Call AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Str orelse Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If BoolOpAnd NameLoad Call AttributeLoad NameLoad attr Str body Assign NameStore Call SubscriptLoad NameLoad Index Str NameLoad NameLoad If UnaryOpNot NameLoad body Assign NameStore Call SubscriptLoad NameLoad Index Str NameLoad NameLoad If CompareNotEq Call SubscriptLoad NameLoad Index Str NameLoad NameLoad Call SubscriptLoad NameLoad Index Str NameLoad NameLoad body Assign NameStore Call SubscriptLoad NameLoad Index Str NameLoad NameLoad If UnaryOpNot NameLoad body Expr Call AttributeLoad NameLoad attr Dict Str Str NameLoad Call AttributeLoad Str attr NameLoad Return NameLoad Assign NameStore NameLoad If BoolOpAnd NameLoad NameLoad body Assign SubscriptStore SubscriptLoad NameLoad Index Str Index Str Call SubscriptLoad NameLoad Index Str keyword NameLoad Assign SubscriptStore SubscriptLoad NameLoad Index Str Index Str Call AttributeLoad Call SubscriptLoad NameLoad Index Str Call AttributeLoad Str attr NameLoad attr Str If SubscriptLoad NameLoad Index Str body If BoolOpAnd NameLoad NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr NameLoad Return NameLoad If BoolOpAnd NameLoad UnaryOpNot NameLoad body Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr NameLoad Return NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr NameLoad Return NameLoad If BoolOpOr UnaryOpNot NameLoad BoolOpAnd NameLoad NameLoad body TryExcept body Assign NameStore Call SubscriptLoad NameLoad Index Str NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad handlers ExceptHandler type NameLoad name NameStore body Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr NameLoad Return NameLoad If CompareNotEq SubscriptLoad NameLoad Index Str Num body Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str BinOpAdd SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Return NameLoad Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore SubscriptLoad NameLoad Index Str Index Str Call AttributeLoad Call SubscriptLoad NameLoad Index Str Call AttributeLoad Str attr NameLoad attr Str If NameLoad body Assign SubscriptStore NameLoad Index Str Str orelse Assign SubscriptStore NameLoad Index Str Str orelse If NameLoad body Assign SubscriptStore NameLoad Index Str Str If NameLoad body Assign NameStore Str Assign NameStore Call SubscriptLoad NameLoad Index Str keyword NameLoad If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword Str keyword NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr NameLoad NameLoad Return NameLoad If NameLoad body Assign NameStore Str Assign NameStore Call SubscriptLoad NameLoad Index Str keyword NameLoad If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword Str keyword NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr NameLoad NameLoad Return NameLoad If BoolOpOr NameLoad NameLoad body Assign NameStore Call NameLoad Call SubscriptLoad NameLoad Index Str keyword NameLoad keyword NameLoad keyword NameLoad If NameLoad body If Call NameLoad NameLoad AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num orelse If Call NameLoad NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad Index Num orelse Raise Call NameLoad Str If CompareNotEq NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call SubscriptLoad NameLoad Index Str keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad AugAssignBitAnd SubscriptStore NameLoad Index Str CompareEq SubscriptLoad NameLoad Index Str Num If CompareGt SubscriptLoad NameLoad Index Str Num body Assign SubscriptStore NameLoad Index Str Call AttributeLoad Str attr SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str Assign NameStore Call NameLoad Call SubscriptLoad NameLoad Index Str keyword NameLoad Assign NameStore Call NameLoad BinOpSub NameLoad NameLoad Assign NameStore Call NameLoad BinOpSub NameLoad NameLoad If BoolOpOr NameLoad NameLoad body Assign SubscriptStore SubscriptLoad NameLoad Index Str Index Str Dict Str Str IfExp NameLoad NameLoad Str IfExp NameLoad NameLoad Str Return NameLoad decorator_list Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str
N/A N/A 
Setup of Python virtualenv sandboxes.

.. versionadded:: 0.17.0
 __future__ absolute_import N/A logging N/A os N/A salt.version N/A salt.utils salt.exceptions CommandNotFoundError salt.ext six N/A log N/A N/A logging getLogger __name__ N/A __virtualname__ virtualenv __virtual__ N/A N/A N/A N/A N/A __virtualname__ N/A managed N/A N/A name venv_bin requirements system_site_packages distribute use_wheel clear python extra_search_dir never_download prompt user no_chown cwd index_url extra_index_url pre_releases no_deps pip_download pip_download_cache pip_exists_action pip_ignore_installed proxy use_vt env_vars no_use_wheel pip_upgrade pip_pkgs N/A None None False False False False None None None None None False None None None False False None None None False None False None False False None N/A N/A 
    Create a virtualenv and optionally manage it with pip

    name
        Path to the virtualenv.
    requirements
        Path to a pip requirements file. If the path begins with ``salt://``
        the file will be transferred from the master file server.
    cwd
        Path to the working directory where `pip install` is executed.
    user
        The user under which to run virtualenv and pip.
    no_chown: False
        When user is given, do not attempt to copy and chown a requirements file
        (needed if the requirements file refers to other files via relative
        paths, as the copy-and-chown procedure does not account for such files)
    use_wheel : False
        Prefer wheel archives (requires pip >= 1.4).
    no_use_wheel : False
        Force to not use wheel archives (requires pip>=1.4)
    no_deps: False
        Pass `--no-deps` to `pip install`.
    pip_exists_action: None
        Default action of pip when a path already exists: (s)witch, (i)gnore,
        (w)ipe, (b)ackup
    proxy: None
        Proxy address which is passed to `pip install`.
    env_vars
        Set environment variables that some builds will depend on. For example,
        a Python C-module may have a Makefile that needs INCLUDE_PATH set to
        pick up a header file while compiling.
    pip_upgrade: False
        Pass `--upgrade` to `pip install`.
    pip_pkgs: None
        As an alternative to `requirements`, pass a list of pip packages that
        should be installed.


     Also accepts any kwargs that the virtualenv module will.
     However, some kwargs require `- distribute: True`

    .. code-block:: yaml

        /var/www/myvirtualenv.com:
          virtualenv.managed:
            - system_site_packages: False
            - requirements: salt://REQUIREMENTS.txt
     N/A ret N/A name result comment changes name True N/A N/A N/A virtualenv.create __salt__ N/A N/A N/A ret N/A result False N/A N/A ret N/A comment Virtualenv was not detected on this system N/A ret N/A N/A N/A N/A salt utils is_windows N/A N/A venv_py N/A N/A N/A os path join name Scripts python.exe N/A N/A venv_py N/A N/A N/A os path join name bin python N/A venv_exists N/A N/A N/A os path exists venv_py N/A N/A requirements N/A N/A requirements startswith salt:// N/A N/A cached_requirements N/A N/A __salt__ N/A cp.is_cached requirements __env__ N/A N/A cached_requirements N/A N/A cached_requirements N/A N/A __salt__ N/A cp.cache_file requirements __env__ N/A N/A N/A N/A __salt__ N/A cp.hash_file requirements __env__ N/A N/A __salt__ N/A cp.hash_file cached_requirements __env__ N/A N/A cached_requirements N/A N/A __salt__ N/A cp.cache_file requirements __env__ N/A N/A cached_requirements N/A N/A N/A N/A ret update N/A result comment False N/A N/A pip requirements file {0!r} not found format requirements N/A ret N/A requirements cached_requirements N/A N/A venv_exists clear N/A N/A N/A N/A ret N/A changes N/A cleared_packages N/A N/A __salt__ N/A pip.freeze bin_env name N/A N/A N/A ret N/A changes N/A old N/A N/A N/A N/A __salt__ N/A cmd.run_stderr N/A N/A {0} -V format venv_py strip N/A N/A __opts__ N/A test N/A N/A N/A venv_exists clear N/A N/A N/A ret N/A result None N/A N/A ret N/A comment N/A N/A Virtualenv {0} is set to be cleared format name N/A ret N/A N/A venv_exists N/A clear N/A N/A N/A ret N/A comment N/A N/A Virtualenv {0} is already created format name N/A ret N/A N/A ret N/A result None N/A N/A ret N/A comment N/A N/A Virtualenv {0} is set to be created format name N/A ret N/A N/A N/A venv_exists N/A venv_exists clear N/A N/A N/A N/A _ret N/A N/A __salt__ N/A virtualenv.create name venv_bin venv_bin system_site_packages system_site_packages distribute distribute clear clear python python extra_search_dir extra_search_dir never_download never_download prompt prompt user user use_vt use_vt N/A N/A N/A CommandNotFoundError N/A err N/A N/A N/A ret N/A result False N/A N/A ret N/A comment N/A N/A Failed to create virtualenv: {0} formar err N/A ret N/A N/A N/A _ret N/A retcode 0 N/A N/A N/A ret N/A result False N/A N/A ret N/A comment N/A N/A _ret N/A stdout N/A _ret N/A stderr N/A ret N/A N/A ret N/A result True N/A N/A N/A ret N/A changes N/A new N/A N/A N/A N/A __salt__ N/A cmd.run_stderr N/A N/A {0} -V format venv_py strip N/A clear N/A N/A N/A ret N/A comment Cleared existing virtualenv N/A N/A N/A ret N/A comment Created new virtualenv N/A N/A venv_exists N/A N/A N/A ret N/A comment virtualenv exists N/A use_wheel N/A N/A min_version 1.4 N/A cur_version N/A N/A __salt__ N/A pip.version bin_env name N/A N/A N/A N/A N/A salt utils compare_versions ver1 cur_version oper >= ver2 min_version N/A N/A N/A ret N/A result False N/A N/A ret N/A comment N/A N/A The 'use_wheel' option is only supported in pip {0} and newer. The version of pip detected was {1}. format min_version cur_version N/A ret N/A no_use_wheel N/A N/A min_version 1.4 N/A cur_version N/A N/A __salt__ N/A pip.version bin_env name N/A N/A N/A N/A N/A salt utils compare_versions ver1 cur_version oper >= ver2 min_version N/A N/A N/A ret N/A result False N/A N/A ret N/A comment N/A N/A The 'no_use_wheel' option is only supported in pip {0} and newer. The version of pip detected was {1}. format min_version cur_version N/A ret N/A N/A requirements pip_pkgs N/A N/A before N/A set N/A N/A __salt__ N/A pip.freeze bin_env name user user use_vt use_vt N/A requirements N/A N/A N/A isinstance requirements N/A six string_types N/A N/A req_canary N/A N/A N/A requirements split , N/A 0 N/A N/A N/A isinstance requirements list N/A N/A req_canary N/A requirements N/A 0 N/A N/A N/A TypeError pip requirements must be either a string or a list N/A N/A req_canary N/A N/A N/A os path abspath req_canary N/A N/A cwd N/A N/A N/A os path dirname N/A N/A N/A os path abspath req_canary N/A _ret N/A N/A __salt__ N/A pip.install pkgs pip_pkgs requirements requirements bin_env name use_wheel use_wheel no_use_wheel no_use_wheel user user cwd cwd index_url index_url extra_index_url extra_index_url download pip_download download_cache pip_download_cache no_chown no_chown pre_releases pre_releases exists_action pip_exists_action ignore_installed pip_ignore_installed upgrade pip_upgrade no_deps no_deps proxy proxy use_vt use_vt env_vars env_vars N/A N/A ret N/A result N/A N/A _ret N/A retcode 0 N/A N/A N/A _ret N/A retcode 0 N/A N/A N/A ret N/A comment N/A N/A {0}
{1}
{2} format N/A ret N/A comment N/A _ret N/A stdout N/A _ret N/A stderr N/A after N/A set N/A N/A __salt__ N/A pip.freeze bin_env name N/A new N/A list N/A after before N/A old N/A list N/A before after N/A N/A new old N/A N/A N/A N/A ret N/A changes N/A packages N/A new old N/A new new N/A old old N/A ret N/A N/A manage N/A N/A N/A salt utils alias_function managed manage