AlkantarClanX12

Your IP : 18.116.43.109


Current Path : /lib64/python2.7/ensurepip/
Upload File :
Current File : //lib64/python2.7/ensurepip/__init__.pyo

�
{fc@s/ddlmZddlZddlZddlZddlZddlZddlZddl	Z	ddgZ
djejd�Z
d�Zed�Zed	�Zdefd	efgZdd
�Zd�Zd�Zdeeeedd
�Zdeeeedd�Zdd�Zdd�ZdS(i����(tprint_functionNtversiont	bootstraps/usr/share/python{}-wheels/icsttjjtdj|���d�dj���}��fd�tj|�D�}tt|dtj	j
��S(Ns{}-s-py2.py3-none-any.whls{}*{}c3s)|]}|t��t��!VqdS(N(tlen(t.0tp(tprefixtsuffix(s*/usr/lib64/python2.7/ensurepip/__init__.pys	<genexpr>stkey(tostpathtjoint
_WHEEL_DIRtformattglobtstrtmaxt	distutilsRtLooseVersion(tpkgtpatterntversions((RRs*/usr/lib64/python2.7/ensurepip/__init__.pyt_get_most_recent_wheel_versions
"t
setuptoolstpipcCsa|dk	r|tjt_nyddlm}Wn!tk
rVddlm}nX||�S(Ni����(tmain(tNonetsysR
t
pip._internalRtImportErrorR(targstadditional_pathsR((s*/usr/lib64/python2.7/ensurepip/__init__.pyt_run_pip$s
cCstS(sA
    Returns a string specifying the bundled version of pip.
    (t_PIP_VERSION(((s*/usr/lib64/python2.7/ensurepip/__init__.pyR3scCsZgtjD]}|jd�r
|^q
}x|D]}tj|=q2Wtjtjd<dS(NtPIP_tPIP_CONFIG_FILE(R	tenviront
startswithtdevnull(tktkeys_to_remove((s*/usr/lib64/python2.7/ensurepip/__init__.pyt#_disable_pip_configuration_settings:s+
c
Cs/td|d|d|d|d|d|�dS(s�
    Bootstrap pip into the current Python installation (or the given root
    directory).

    Note that calling this function will alter both sys.path and os.environ.
    troottupgradetusert
altinstalltdefault_pipt	verbosityN(t
_bootstrap(R*R+R,R-R.R/((s*/usr/lib64/python2.7/ensurepip/__init__.pyRFs
cCs�|r|rtd��nt�|r8dtjd<n|sNdtjd<ntj�}zMg}x�tD]�\}}	dj||	�}
ttj	j
t|
�d��A}ttj	j
||
�d��}|j|j
��WdQXWdQX|jtj	j
||
��qjWdd	d
|g}
|r4|
d|g7}
n|rJ|
dg7}
n|r`|
d
g7}
n|r~|
dd|g7}
nt|
gtD]}|d^q�|�SWdtj|dt�XdS(s�
    Bootstrap pip into the current Python installation (or the given root
    directory). Returns pip command status code.

    Note that calling this function will alter both sys.path and os.environ.
    s.Cannot use altinstall and default_pip togetherR-tENSUREPIP_OPTIONStinstalls{}-{}-py2.py3-none-any.whltrbtwbNs
--no-indexs--find-linkss--roots	--upgrades--usert-tvit
ignore_errors(t
ValueErrorR)R	R$ttempfiletmkdtempt	_PROJECTSR
topenR
RRtwritetreadtappendR tshutiltrmtreetTrue(R*R+R,R-R.R/ttmpdirRtprojectRt
wheel_nametsfptfpRR((s*/usr/lib64/python2.7/ensurepip/__init__.pyR0Us6	!! ,cCs�yddl}Wntk
r$dSX|jtkr`d}t|j|jt�dtj�dSt�dddg}|r�|dd	|g7}nt	|gt
t�D]}|d
^q��S(s~Helper to support a clean default uninstall process on Windows

    Note that calling this function may alter os.environ.
    i����NsOensurepip will only uninstall a matching version ({!r} installed, {!r} bundled)tfilet	uninstalls-ys--disable-pip-version-checkR5R6i(RRt__version__R!tprintR
RtstderrR)R treversedR;(R/RtmsgRR((s*/usr/lib64/python2.7/ensurepip/__init__.pyt_uninstall_helper�s
"c
Cs}ddl}|jdd�}|jdddddjt��dd	�|jd
dddd
ddddd�|jddddd
tdd�|jdddd
tdd�|jdd
ddd�|jdddd
tdd�|jdddd
tddd|j�|jddddddd �|j	|�}t
d!|jd"|jd#|j
d|jd$|jd|j�S(%Ni����tprogspython -m ensurepips	--versiontactionRspip {}thelps9Show the version of pip that is bundled with this Python.s-vs	--verbosetcounttdefaultitdestR/sDGive more output. Option is additive, and can be used up to 3 times.s-Us	--upgradet
store_trues8Upgrade pip and dependencies, even if already installed.s--usersInstall using the user scheme.s--roots=Install everything relative to this alternate root directory.s--altinstallsoMake an alternate install, installing only the X.Y versioned scripts (Default: pipX, pipX.Y, easy_install-X.Y).s
--default-pipR.s--no-default-piptstore_falsesLMake a non default install, installing only the X and X.Y versioned scripts.R*R+R,R-(targparsetArgumentParsertadd_argumentR
RtFalseRRBtSUPPRESSt
parse_argsR0R*R+R,R/R-R.(targvRXtparserR((s*/usr/lib64/python2.7/ensurepip/__init__.pyt_main�sf		
					(t
__future__Rtdistutils.versionRRR	tos.pathR@RR9t__all__R
tversion_infoRRt_SETUPTOOLS_VERSIONR!R;RR RR)R[RBRR0ROR`(((s*/usr/lib64/python2.7/ensurepip/__init__.pyt<module>s2					
	5