AlkantarClanX12

Your IP : 3.135.194.138


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

�
^
bc@sddlmZddlZddlZddlZddlZddlZddlZddlm	Z	ddgZ
dZdZdefd	efgZ
dd
�Zd�Zd�Zdeeeed
d�Zdeeeed
d�Zd
d�Zdd�ZdS(i����(tprint_functionN(trewheeltversiont	bootstraps41.2.0s19.2.3t
setuptoolstpipcCs[|dk	r|tjt_nddl}|ddkrK|jd�n|jj|�S(Ni����itinstalltlisttwheels--pre(RRR(tNonetsystpatht
pip._internaltappendt	_internaltmain(targstadditional_pathsR((s7/opt/alt/python27/lib64/python2.7/ensurepip/__init__.pyt_run_pipscCstS(sA
    Returns a string specifying the bundled version of pip.
    (t_PIP_VERSION(((s7/opt/alt/python27/lib64/python2.7/ensurepip/__init__.pyR&scCsZgtjD]}|jd�r
|^q
}x|D]}tj|=q2Wtjtjd<dS(NtPIP_tPIP_CONFIG_FILE(tostenviront
startswithtdevnull(tktkeys_to_remove((s7/opt/alt/python27/lib64/python2.7/ensurepip/__init__.pyt#_disable_pip_configuration_settings-s+
ic
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(RRRR R!R"((s7/opt/alt/python27/lib64/python2.7/ensurepip/__init__.pyR9s
cCs^|r|rtd��nt�|r8dtjd<n|sNdtjd<ng}d}tjgtD]}|d^qg�}	t|	�r�t	j
�}x�|	D]:}
tj|
|j�}|j
tjj|j|��q�WnTxQtD]I\}}
tjjtjjt�ddj||
��}|j
|�q�Wt	j�}zg}xF|D]>}tj||�|j
tjj|tjj|���qPW|r�|j�nddd	|g}|r�|d
|g7}n|r�|dg7}n|r�|dg7}n|r|d
d|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_OPTIONSRit_bundleds{}-{}-py2.py3-none-any.whls
--no-indexs--find-linkss--roots	--upgrades--usert-tvNt
ignore_errors(t
ValueErrorRRRR	Rtfind_system_recordst	_PROJECTStallttempfiletTemporaryDirectorytrewheel_from_recordtnameR
Rtjointdirnamet__file__tformattmkdtemptshutiltcopytbasenametcleanupRtrmtreetTrue(RRRR R!R"twhlstrewheel_dirtptdep_recordstdrtnew_whltprojectRtwhlttmpdirRR((s7/opt/alt/python27/lib64/python2.7/ensurepip/__init__.pyR#HsP	&
&	
,
,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-checkR&R'i(RtImportErrort__version__RtprintR4R
tstderrRRtreversedR+(R"RtmsgRR>((s7/opt/alt/python27/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.RRRR (targparsetArgumentParsertadd_argumentR4RtFalseR	R;tSUPPRESSt
parse_argsR#RRRR"R R!(targvRVtparserR((s7/opt/alt/python27/lib64/python2.7/ensurepip/__init__.pyt_main�sf		
					(t
__future__RRtos.pathtpkgutilR6R
R-t	ensurepipRt__all__t_SETUPTOOLS_VERSIONRR+R	RRRRYR;RR#RMR^(((s7/opt/alt/python27/lib64/python2.7/ensurepip/__init__.pyt<module>s.				
	K