eaiovnaovbqoebvqoeavibavo ó šV~gc@sddlmZddlZddlZddlZddlZddlZddlZddlm Z ddgZ dZ dZ de fd 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}tj||ƒ|j tj j|tj j|ƒƒƒqJWddd |g}|r·|d |g7}n|rÍ|d g7}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 _PROJECTStallttempfiletmkdtemptrewheel_from_recordR R tjointdirnamet__file__tformattshutiltcopytbasenameRtrmtreetTrue(RRRR R!R"twhlst rewheel_dirtpt dep_recordstdrtnew_whltprojectRtwhlttmpdirRR((s7/opt/alt/python27/lib64/python2.7/ensurepip/__init__.pyR#HsL &   #   ,,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( Rt ImportErrort __version__RtprintR3R tstderrRRtreversedR+(R"RtmsgRR;((s7/opt/alt/python27/lib64/python2.7/ensurepip/__init__.pyt_uninstall_helper“s "c Cs}ddl}|jddƒ}|jdddddjtƒƒdd ƒ|jd d dd d dddddƒ|jddddd tddƒ|jdddd tddƒ|jdd dddƒ|jdddd tddƒ|jdddd tddd|jƒ|jddddddd ƒ|j |ƒ}t d!|j d"|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-pipt store_falsesLMake a non default install, installing only the X and X.Y versioned scripts.RRRR (targparsetArgumentParsert add_argumentR3RtFalseR R8tSUPPRESSt parse_argsR#RRRR"R R!(targvRStparserR((s7/opt/alt/python27/lib64/python2.7/ensurepip/__init__.pyt_main¯sf         (t __future__RRtos.pathtpkgutilR4R R-t ensurepipRt__all__t_SETUPTOOLS_VERSIONRR+R RRRRVR8RR#RJR[(((s7/opt/alt/python27/lib64/python2.7/ensurepip/__init__.pyts.            I