Viewing File: /opt/alt/python35/lib64/python3.5/ensurepip/__pycache__/__init__.cpython-35.opt-2.pyc



Yf@sVddlZddlZddlZddlZddlZddlZddlmZddgZdZ	dZ
dje
Zyddl
Z
Wn$ek
rdZ
dd	ZYn
Xd
d	Zde	fde
fgZdd
dZddZddZddddddddddddddZddddZdddZdS)N)rewheelversion	bootstrapz28.8.0z7.1.0zpip {} requires SSL/TLScCsttdS)N)RuntimeError_MISSING_SSL_MESSAGErr-/opt/alt/python35/lib64/python3.5/__init__.py_require_ssl_for_pipsr	cCsdS)Nrrrrrr	sZ
setuptoolspipcCsV|dk	r|tjt_ddl}|ddkrE|jd|j|dS)Nrinstalllistwheelz--pre)rrr
)syspathr
appendmain)argsadditional_pathsr
rrr_run_pip$s
rcCstS)N)_PIP_VERSIONrrrrr0scCsEddtjD}x|D]}tj|=qWtjtjd<dS)NcSs%g|]}|jdr|qS)ZPIP_)
startswith).0krrr
<listcomp>:s	z7_disable_pip_configuration_settings.<locals>.<listcomp>ZPIP_CONFIG_FILE)osenvirondevnull)Zkeys_to_removerrrr#_disable_pip_configuration_settings6s
rrootupgradeFuser
altinstalldefault_pip	verbosityc
Cs+|r|rtdtt|r<dtjd<n|sOdtjd<g}d}tjddtD}t|rt	j
}x|D]:}	tj|	|j}
|j
tjj|j|
qWnTxQtD]I\}}tjjtjjtddj||}
|j
|
qWt	j
}g}xF|D]>}
tj|
||j
tjj|tjj|
qGW|r|jdd	d
|g}|r|d|g7}|r|dg7}|r|d
g7}|r|dd|g7}t|ddtD|WdQRXdS)Nz.Cannot use altinstall and default_pip togetherr!ZENSUREPIP_OPTIONSrcSsg|]}|dqS)rr)rprrrras	zbootstrap.<locals>.<listcomp>Z_bundledz{}-{}-py2.py3-none-any.whlz
--no-indexz--find-linksz--rootz	--upgradez--user-vcSsg|]}|dqS)rr)rr$rrrrs	)
ValueErrorr	rrrrZfind_system_records	_PROJECTSalltempfileTemporaryDirectoryZrewheel_from_recordnamerrjoindirname__file__formatshutilcopybasenamecleanupr)rrr r!r"r#ZwhlsZrewheel_dirZdep_recordsZdrZnew_whlZprojectrZwhlZtmpdirrrrrrrBsN	

&	
,


c
Csyddl}Wntk
r(dSYnX|jtkrdd}t|j|jtdtjdStt	dddg}|r|dd|g7}t
|d	d
ttDdS)NrzOensurepip will only uninstall a matching version ({!r} installed, {!r} bundled)fileZ	uninstallz-yz--disable-pip-version-checkr%r&cSsg|]}|dqS)rr)rr$rrrrs	z%_uninstall_helper.<locals>.<listcomp>)
r
ImportError__version__rprintr0rstderrr	rrreversedr()r#r
msgrrrr_uninstall_helpers
	"r<c
Cstdkr,tdjtdtjdSddl}|jdd}|jddddd	jt	d
d|jdd
ddddddd
d|jddddddd
d|jdddddd
d|jdddd
d|jdddddd
d|jdddddd
d|j
|}td |jd!|j
d"|jd|jd#|jd$|jdS)%NzIgnoring ensurepip failure: {}r5rprogzpython -m ensurepipz	--versionactionrzpip {}helpz9Show the version of pip that is bundled with this Python.z-vz	--verbosecountdefaultdestr#zDGive more output. Option is additive, and can be used up to 3 times.z-Uz	--upgrade
store_trueFz8Upgrade pip and dependencies, even if already installed.z--userzInstall using the user scheme.z--rootz=Install everything relative to this alternate root directory.z--altinstallzmMake an alternate install, installing only the X.Y versionedscripts (Default: pipX, pipX.Y, easy_install-X.Y)z
--default-pipzpMake a default pip install, installing the unqualified pip and easy_install in addition to the versioned scriptsrrr r!r")sslr8r0rrr9argparseArgumentParseradd_argumentr
parse_argsrrrr r#r!r")argvrEparserrrrr_mainsb
							rK)rZos.pathZpkgutilr1rr*Z	ensurepipr__all__Z_SETUPTOOLS_VERSIONrr0rrDr6r	r(rrrrr<rKrrrr<module>s4
	I
Back to Directory File Manager