MINI MINI MANI MO

Path : /usr/lib64/python3.6/ensurepip/__pycache__/
File Upload :
Current File : //usr/lib64/python3.6/ensurepip/__pycache__/__init__.cpython-36.pyc

3


 \
@sddlZddlZddlZddlZddlZddgZdZdZdefdefgZddd	Z	d
dZ
ddZdd
d
d
d
ddddZdd
d
d
d
ddddZ
ddddZdddZdS)Nversion	bootstrapz40.6.2z18.1Z
setuptoolspipcCs(|dk	r|tjt_ddl}|jj|S)Nr)syspathZ
pip._internalZ	_internalmain)argsadditional_pathsrr
*/usr/lib64/python3.6/ensurepip/__init__.py_run_pipsrcCstS)zA
    Returns a string specifying the bundled version of pip.
    )_PIP_VERSIONr
r
r
rrscCs6ddtjD}x|D]}tj|=qWtjtjd<dS)NcSsg|]}|jdr|qS)ZPIP_)
startswith).0kr
r
r
<listcomp>)sz7_disable_pip_configuration_settings.<locals>.<listcomp>ZPIP_CONFIG_FILE)osenvirondevnull)Zkeys_to_removerr
r
r#_disable_pip_configuration_settings%s
rF)rootupgradeuser
altinstalldefault_pip	verbositycCst||||||ddS)z
    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.
    )rrrrrrN)
_bootstrap)rrrrrrr
r
rr1s
cCs"|r|rtdt|r&dtjd<n|s4dtjd<tj}g}xltD]d\}}	dj||	}
tj	ddj|
}t
tjj||
d}|j
|Wd	QRX|jtjj||
qHWdd
d|g}
|r|
d|g7}
|r|
d
g7}
|r|
dg7}
|r|
dd|g7}
t|
ddtD|SQRXd	S)z
    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.
    z.Cannot use altinstall and default_pip togetherrZENSUREPIP_OPTIONSZinstallz{}-{}-py2.py3-none-any.whlZ	ensurepipz_bundled/{}wbNz
--no-indexz--find-linksz--rootz	--upgradez--user-vcSsg|]}|dqS)rr
)rpr
r
rrusz_bootstrap.<locals>.<listcomp>)
ValueErrorrrrtempfileZTemporaryDirectory	_PROJECTSformatpkgutilget_dataopenrjoinwriteappendr)rrrrrrZtmpdirr	ZprojectrZ
wheel_nameZwhlfprr
r
rr@s6	



r)rc
Csyddl}Wntk
r dSX|jtkrLd}t|j|jttjddStdddg}|rr|dd	|g7}t	|d
dt
tDS)z~Helper to support a clean default uninstall process on Windows

    Note that calling this function may alter os.environ.
    rNzOensurepip will only uninstall a matching version ({!r} installed, {!r} bundled))fileZ	uninstallz-yz--disable-pip-version-checkrrcSsg|]}|dqS)rr
)rr r
r
rrsz%_uninstall_helper.<locals>.<listcomp>)rImportError__version__r
printr$rstderrrrreversedr#)rrmsgrr
r
r_uninstall_helperws

r3cCsddl}|jdd}|jdddjtdd|jd	d
dddd
d|jdddddd|jddddd|jdddd|jddddd|jddddd|j|}t|j|j|j	|j
|j|jdS)Nrzpython -m ensurepip)progz	--versionrzpip {}z9Show the version of pip that is bundled with this Python.)actionrhelpz-vz	--verbosecountrzDGive more output. Option is additive, and can be used up to 3 times.)r5defaultdestr6z-Uz	--upgrade
store_trueFz8Upgrade pip and dependencies, even if already installed.)r5r8r6z--userzInstall using the user scheme.z--rootz=Install everything relative to this alternate root directory.)r8r6z--altinstallzoMake an alternate install, installing only the X.Y versioned scripts (Default: pipX, pipX.Y, easy_install-X.Y).z
--default-pipzqMake a default pip install, installing the unqualified pip and easy_install in addition to the versioned scripts.)rrrrrr)
argparseArgumentParseradd_argumentr$r
parse_argsrrrrrrr)argvr;parserrr
r
r_mainsZ

rA)N)N)rZos.pathr%rr"__all__Z_SETUPTOOLS_VERSIONr
r#rrrrrr3rAr
r
r
r<module>s(



5

OHA YOOOO