%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python2.7/site-packages/salt/states/
Upload File :
Create Path :
Current File : //lib/python2.7/site-packages/salt/states/virtualenv_mod.pyo

�
���^c@@s-dZddlmZmZmZddlZddlZddlZddl	Zddl
ZddlZddlm
Z
mZddlmZeje�ZdZd�Zeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed�Zejjjed	�ZdS(
uA
Setup of Python virtualenv sandboxes.

.. versionadded:: 0.17.0
i(tabsolute_importtprint_functiontunicode_literalsN(tCommandExecutionErrortCommandNotFoundError(tsixu
virtualenvcC@stS(N(t__virtualname__(((s>/usr/lib/python2.7/site-packages/salt/states/virtualenv_mod.pyt__virtual__sc2:K@syi|d6td6dd6id6} dtkrFt| d<d| d<| Stjjj�rstjj	|dd	�}!ntjj	|d
d�}!tjj
|!�}"|rZ|jd�rZtd
|t�}#|#s�td|t�}#n|#r#td|t�td|#t�kr#td|t�}#n|#sQ| j
itd6dj|�d6�| S|#}n|"r�|r�tdd|�| dd<tddj|!��jd�| dd<ntdr*|"r�|r�dT| d<dj|�| d<| S|"r	|r	dj|�| d<| SdT| d<dj|�| d<| S|"s=|"rL|rLyStd|d|d|d|d|d |d!|d"|	d#|
d$|d%||�
}$Wn1tk
r�}%t| d<d&j|%�| d<| SX|$d'd(kr�t| d<|$d)|$d*| d<| St| d<tddj|!��jd�| dd+<|r?d,| d<q_d-| d<n|"r_d.| d<n|rd/}&d0}'td1d|�}(tjjjd2|(d3d4d5|&�})tjjjd2|(d3d6d5|'�}*|)s�|*rt| d<d7j|&|'|(�| d<| Sn|r�d/}&d0}'td1d|�}(tjjjd2|(d3d4d5|&�})tjjjd2|(d3d6d5|'�}*|)s{|*r�t| d<d8j|&|'|(�| d<| Sn|rd9}&td1d|�}(tjjjd2|(d3d4d5|&�})|)rt| d<d:j|&|(�| d<| Sn|s!|ruy)ttdd|d$|d%|��}+Wn+tk
rw},t| d<|,j| d<| SX|r
t|tj�r�|jd;�d(}-n(t|t�r�|d(}-ntd<��|-tjj|-�kr
tjjtjj|-��}q
ntd=d>|d?|d@|d|dA|dB|dC|d$|dD|dE|
dF|dG|dH|dI|dJ|dK|dL|dM|dN|d%|dO|dP|dQ||�}.| dc|.d'd(kM<|.d'd(kr�dRj| d|.d)|.d*�| d<nttdd|��}/t|/|+�}0t|+|/�}1|0s;|1rui|0rJ|0ndd+6|1r]|1ndd6| ddS<qun| S(Uu�
    Create a virtualenv and optionally manage it with pip

    name
        Path to the virtualenv.

    venv_bin: virtualenv
        The name (and optionally path) of the virtualenv command. This can also
        be set globally in the minion config file as ``virtualenv.venv_bin``.

    requirements: None
        Path to a pip requirements file. If the path begins with ``salt://``
        the file will be transferred from the master file server.

    use_wheel: False
        Prefer wheel archives (requires pip >= 1.4).

    python : None
        Python executable used to build the virtualenv

    user: None
        The user under which to run virtualenv and pip.

    cwd: None
        Path to the working directory where `pip install` is executed.

    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: None
        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.

    no_use_wheel: False
        Force to not use wheel archives (requires pip>=1.4)

    no_binary
        Force to not use binary packages (requires pip >= 7.0.0)
        Accepts either :all: to disable all binary packages, :none: to empty the set,
        or a list of one or more packages

    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.

    process_dependency_links: False
        Run pip install with the --process_dependency_links flag.

        .. versionadded:: 2017.7.0

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

    .. code-block:: yaml

        /var/www/myvirtualenv.com:
          virtualenv.managed:
            - system_site_packages: False
            - requirements: salt://REQUIREMENTS.txt
            - env_vars:
                PATH_VAR: '/usr/local/bin/'
    unameuresultuucommentuchangesuvirtualenv.createu*Virtualenv was not detected on this systemuScriptsu
python.exeubinupythonusalt://ucp.is_cachedu
cp.cache_fileucp.hash_fileu%pip requirements file '{0}' not foundu
pip.freezetbin_envucleared_packagesucmd.run_stderru{0} -Vu
uoldutestu#Virtualenv {0} is set to be clearedu!Virtualenv {0} is already createdu#Virtualenv {0} is set to be createdtvenv_bintsystem_site_packagest
distributetcleartpythontextra_search_dirtnever_downloadtprompttusertuse_vtu Failed to create virtualenv: {0}uretcodeiustdoutustderrunewuCleared existing virtualenvuCreated new virtualenvuvirtualenv existsu1.4u9.0.3upip.versiontver1toperu<tver2u>uiThe 'use_wheel' option is only supported in pip between {0} and {1}. The version of pip detected was {2}.ulThe 'no_use_wheel' option is only supported in pip between {0} and {1}. The version of pip detected was {2}.u7.0.0ucThe 'no_binary' option is only supported in pip {0} and newer. The version of pip detected was {1}.u,u2pip requirements must be either a string or a listupip.installtpkgstrequirementstprocess_dependency_linkst	use_wheeltno_use_wheelt	no_binarytcwdt	index_urltextra_index_urltdownloadtdownload_cachetpre_releasest
exists_actiontignore_installedtupgradetno_depstproxytenv_varstno_cache_dirt	cache_diru{0}
{1}
{2}upackagesN( tTruet__salt__tFalsetsalttutilstplatformt
is_windowstostpathtjointexistst
startswitht__env__tupdatetformattstript__opts__tNoneRtversionstcomparetsetRtstrerrort
isinstanceRtstring_typestsplittlistt	TypeErrortabspathtdirname(2tnameR	RR
RRRR
RRRRRRRR!R%tpip_downloadtpip_download_cachetpip_exists_actiontpip_ignore_installedR&RR'Rtpip_upgradetpip_pkgstpip_no_cache_dirt
pip_cache_dirRRtkwargstrettvenv_pytvenv_existstcached_requirementstvenv_retterrtmin_versiontmax_versiontcur_versionttoo_lowttoo_hightbeforetexct
req_canarytpip_rettaftertnewtold((s>/usr/lib/python2.7/site-packages/salt/states/virtualenv_mod.pytmanaged!s6i"

		-







#


$$
$$
$
)


	$
	
$umanage(t__doc__t
__future__RRRtloggingR1tsalt.versionR-tsalt.utils.functoolstsalt.utils.platformtsalt.utils.versionstsalt.exceptionsRRtsalt.extRt	getLoggert__name__tlogRRR;R,RcR.t	functoolstalias_functiontmanage(((s>/usr/lib/python2.7/site-packages/salt/states/virtualenv_mod.pyt<module>sX	�

Zerion Mini Shell 1.0