-=[ Mr. Bumblebee ]=-
_Indonesia_

Path : /usr/lib/python2.7/ensurepip/
File Upload :
Current File : //usr/lib/python2.7/ensurepip/__init__.pyc

ó
ÐV}]c@sddlmZddlZddlZddlZddlZddlZddlZddlZddgZ	d„Z
dZyddlZWn e
k
r±dZd„Zn
Xd„Zd	d
gZdd„Zd„Zd
„Zdeeeedd„Zdd„Zdd„ZdS(iÿÿÿÿ(tprint_functionNtversiont	bootstrapcCs$tr tdƒtjdƒndS(Ns¥ensurepip is disabled in Debian/Ubuntu for the system python.

Python modules For the system python are usually handled by dpkg and apt-get.

    apt-get install python-<module name>

Install the python-pip package to use pip itself.  Using pip together
with the system python might have unexpected results for any system installed
module, so use it on your own risk, or make sure to only use it in virtual
environments.
i(tTruetprinttsystexit(((s(/usr/lib/python2.7/ensurepip/__init__.pyt _ensurepip_is_disabled_in_debiansspip requires SSL/TLScCsttƒ‚dS(N(tRuntimeErrort_MISSING_SSL_MESSAGE(((s(/usr/lib/python2.7/ensurepip/__init__.pyt_require_ssl_for_pip'scCsdS(N((((s(/usr/lib/python2.7/ensurepip/__init__.pyR
*st
setuptoolstpipcCs<|dk	r|tjt_nddl}|j|ƒdS(Niÿÿÿÿ(tNoneRtpathRtmain(targstadditional_pathsR((s(/usr/lib/python2.7/ensurepip/__init__.pyt_run_pip3scCsmtƒd}tjd|ƒ}t|ƒdkrStjj|dƒjdƒdStd||fƒ‚dS(sA
    Returns a string specifying the bundled version of pip.
    Rs!/usr/share/python-wheels/%s-*.whliit-sbmissing dependency wheel %s. Installation of the python-%s-whl package is needed to use ensurepip.N(RtglobtlentosRtbasenametsplitR(twhl_nametwheel_names((s(/usr/lib/python2.7/ensurepip/__init__.pyR=s!cCsZgtjD]}|jdƒr
|^q
}x|D]}tj|=q2Wtjtjd<dS(NtPIP_tPIP_CONFIG_FILE(Rtenviront
startswithtdevnull(tktkeys_to_remove((s(/usr/lib/python2.7/ensurepip/__init__.pyt#_disable_pip_configuration_settingsIs+
ic	CsQtƒ|r"|r"tdƒ‚ntƒtƒ|rFdtjd<n|s\dtjd<nd„}g}xIttƒD];}tjd|ƒ}	t	|	ƒdkrx|j
|ƒqxqxW|rtdd	j|gƒd	jg|D]}
d
|
^q߃fƒ‚nt
jƒ}x…tD]}}yJtd|ƒ4}g|jƒD]}
|
d jƒd
^q>}WdQXWntk
r~g}nX|||tjƒqWz g}|t||ƒddd|g}|rÚ|d|g7}n|rð|dg7}n|r|dg7}n|r$|dd|g7}nt|t|ƒWdtj|dtƒXdS(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_OPTIONStinstallc
Ssx|D]ý}tjdj|ƒƒ}t|ƒdkrPtd||fƒ‚nt|ƒdksnt|ƒ‚tjj|dƒ}tjjd|ƒ}t	|dƒ}|j
ƒ}WdQXtjj||ƒ}	t	|	dƒ}|j|ƒWdQX|j|	ƒqWdS(Ns!/usr/share/python-wheels/{}-*.whlisbmissing dependency wheel %s. Installation of the python-%s-whl package is needed to use ensurepip.is/usr/share/python-wheelstrbtwb(
RtformatRRtAssertionErrorRRRtjointopentreadtwritetappend(
twheelstdestdirtpathstprojectRt
wheel_nameRtfptwhltdest((s(/usr/lib/python2.7/ensurepip/__init__.pytcopy_wheelsvs
s!/usr/share/python-wheels/%s-*.whlisRmissing wheel(s) %s. Installation of the %s package(s) is needed to use ensurepip.s, s
python-%s-whls(/usr/share/python-wheels/%s.dependenciesiÿÿÿÿiNs
--no-indexs--find-linkss--roots	--upgrades--userRtvt
ignore_errors(Rt
ValueErrorR
R"RRtreversedt	_PROJECTSRRR.RR*ttempfiletmkdtempR+t	readlinesRtIOErrorRRRtshutiltrmtreeR(troottupgradetuserR#tdefault_pipt	verbosityR7tmissingR2RtmttmpdirR4tlinetdependenciesRR((s(/usr/lib/python2.7/ensurepip/__init__.pyRUsR		0
7

cCs¶yddl}Wntk
r$dSXtrf|jtkrfd}t|j|jtƒdtjƒdSt	ƒt
ƒddg}|rž|dd|g7}nt|tt
ƒƒ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-yRR8(RtImportErrortFalset__version__t_PIP_VERSIONRR(RtstderrR
R"RR;R<(RGRtmsgR((s(/usr/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: {}RMiÿÿÿÿtprogspython -m ensurepips	--versiontactionRspip {}thelps9Show the version of pip that is bundled with this Python.s-vs	--verbosetcounttdefaultiR6RGsDGive 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-pipRFs--no-default-piptstore_falsesLMake a non default install, installing only the X and X.Y versioned scripts.RCRDRER#(tsslR
RR(R	RRStargparsetArgumentParsertadd_argumentRRPRtSUPPRESSt
parse_argsRRCRDRERGR#RF(targvR^tparserR((s(/usr/lib/python2.7/ensurepip/__init__.pyt_mainÐsn
		
					(t
__future__RRRtos.pathtpkgutilRARR=t__all__RR	R]ROR
R
R<RRR"RPRRRURe(((s(/usr/lib/python2.7/ensurepip/__init__.pyt<module>s4	

		
			[

Copyright © 2017 || Recoded By Mr.Bumblebee