Current File : //opt/imh-python/lib/python2.7/ensurepip/__init__.pyc
�
��Wc@s(ddlmZddlZddlZddlZddlZddlZddlZddgZdZ	dZ
dje
�Zyddl
Z
Wn ek
r�dZ
d�Zn
Xd	�Zd
e	fde
fgZdd�Zd
�Zd�Zdeeeedd�Zdd�Zdd�ZdS(i����(tprint_functionNtversiont	bootstraps20.10.1s8.1.1spip {} requires SSL/TLScCstt��dS(N(tRuntimeErrort_MISSING_SSL_MESSAGE(((sk/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/ensurepip/__init__.pyt_require_ssl_for_pipscCsdS(N((((sk/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/ensurepip/__init__.pyRst
setuptoolstpipcCs<|dk	r|tjt_nddl}|j|�dS(Ni����(tNonetsystpathRtmain(targstadditional_pathsR((sk/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/ensurepip/__init__.pyt_run_pip'scCstS(sA
    Returns a string specifying the bundled version of pip.
    (t_PIP_VERSION(((sk/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/ensurepip/__init__.pyR1scCsZgtjD]}|jd�r
|^q
}x|D]}tj|=q2Wtjtjd<dS(NtPIP_tPIP_CONFIG_FILE(tostenviront
startswithtdevnull(tktkeys_to_remove((sk/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/ensurepip/__init__.pyt#_disable_pip_configuration_settings8s+
icCs�|r|rtd��nt�t�|r?dtjd<n|sUdtjd<ntj�}z;g}x�tD]�\}}	dj||	�}
t	j
ddj|
��}ttjj
||
�d��}|j|�Wd	QX|jtjj
||
��qqWdd
d|g}
|r)|
d|g7}
n|r?|
d
g7}
n|rU|
dg7}
n|rs|
dd|g7}
nt|
gtD]}|d^q�|�Wd	tj|dt�Xd	S(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.
    s.Cannot use altinstall and default_pip togethert
altinstalltENSUREPIP_OPTIONStinstalls{}-{}-py2.py3-none-any.whlt	ensurepips_bundled/{}twbNs
--no-indexs--find-linkss--roots	--upgrades--usert-tvit
ignore_errors(t
ValueErrorRRRRttempfiletmkdtempt	_PROJECTStformattpkgutiltget_datatopenR
tjointwritetappendRtshutiltrmtreetTrue(troottupgradetuserRtdefault_pipt	verbosityttmpdirR
tprojectRt
wheel_nametwhltfpRtp((sk/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/ensurepip/__init__.pyRDs<	! ,cCs�yddl}Wntk
r$dSX|jtkr`d}t|j|jt�dtj�dSt�t	�dddg}|r�|dd	|g7}nt
|gtt�D]}|d
^q��dS(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-checkRRi(
RtImportErrort__version__RtprintR%R	tstderrRRRtreversedR$(R3RtmsgRR9((sk/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/ensurepip/__init__.pyt_uninstall_helper�s
"c
Cs�tdkr,tdjt�dtj�dSddl}|jdd�}|j	ddddd	jt
��d
d�|j	dd
ddddddd
d�|j	dddddtd
d�|j	ddddtd
d�|j	dddd
d�|j	ddddtd
d�|j	ddddtddd
|j
�|j	d dd!ddd
d"�|j|�}td#|jd$|jd%|jd|jd&|jd|j�dS('NsIgnoring ensurepip failure: {}R:i����tprogspython -m ensurepips	--versiontactionRspip {}thelps9Show the version of pip that is bundled with this Python.s-vs	--verbosetcounttdefaultitdestR3sDGive 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--altinstallsmMake an alternate install, installing only the X.Y versionedscripts (Default: pipX, pipX.Y, easy_install-X.Y)s
--default-pipR2s--no-default-piptstore_falsesLMake a non default install, installing only the X and X.Y versioned scripts.R/R0R1R(tsslRR>R%RR	R?targparsetArgumentParsertadd_argumentRtFalseR.tSUPPRESSt
parse_argsRR/R0R1R3RR2(targvRLtparserR((sk/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/ensurepip/__init__.pyt_main�sn
		
					(t
__future__RRtos.pathR&R,R	R"t__all__t_SETUPTOOLS_VERSIONRR%RRKR<RRR$RRRROR.RRBRT(((sk/builddir/build/BUILDROOT/imh-python-2.7.12-1.el7.x86_64/opt/imh-python/lib/python2.7/ensurepip/__init__.pyt<module>s4

		
			: