/usr/lib/python2.6/site-packages/pip-8.1.1-py2.6.egg/pip
NameSizeModeActions
commands/-0755rm
compat/-0755rm
models/-0755rm
operations/-0755rm
req/-0755rm
utils/-0755rm
vcs/-0755rm
_vendor/-0755rm
basecommand.py114290644editdlrm
basecommand.pyc90940644editdlrm
baseparser.py104650644editdlrm
baseparser.pyc113650644editdlrm
cmdoptions.py158780644editdlrm
cmdoptions.pyc155780644editdlrm
download.py317220644editdlrm
download.pyc261750644editdlrm
exceptions.py79800644editdlrm
exceptions.pyc129200644editdlrm
index.py371910644editdlrm
index.pyc350090644editdlrm
locations.py56320644editdlrm
locations.pyc49720644editdlrm
pep425tags.py113180644editdlrm
pep425tags.pyc101080644editdlrm
status_codes.py1560644editdlrm
status_codes.pyc4130644editdlrm
wheel.py320880644editdlrm
wheel.pyc268360644editdlrm
__init__.py104270644editdlrm
__init__.pyc95570644editdlrm
__main__.py5840644editdlrm
__main__.pyc5080644editdlrm
Edit: /usr/lib/python2.6/site-packages/pip-8.1.1-py2.6.egg/pip/wheel.pyc (26836B)
Wc(@@sdZddklZddkZddkZddkZddkZddkZddkZddk Z ddk Z ddk Z ddk Z ddk Z ddkZddkZddkZddklZddklZddklZddkZddklZddklZlZdd klZlZl Z dd k!l"Z"l#Z#dd kl$Z$dd k%l&Z&l'Z'l(Z(l)Z)l*Z*dd k+l,Z,ddk-l.Z.ddk/l0Z0ddk1l2Z2ddk3l4Z4ddk5l6Z6ddk7l8Z8dZ9ddfZ:ei;e<Z=de>fdYZ?dZ@dZAddd>dZBdZCdZDe iEde iFZGd ZHd!ZIeJeKeKeLeKeJeKd"ZMd#ZNeNd$ZOd%ZPd&ZQd'e>fd(YZRd)e>fd*YZSdS(+sH Support for installing and building the "wheel" binary package format. i(tabsolute_importN(turlsafe_b64encode(tParser(tStringIO(t expanduser(t path_to_urlt unpack_url(tInstallationErrortInvalidWheelFilenametUnsupportedWheel(tdistutils_schemetPIP_DELETE_MARKER_FILENAME(t pep425tags(tcall_subprocesst ensure_dirtcaptured_stdouttrmtreet read_chunks(t open_spinner(t indent_log(tSETUPTOOLS_SHIM(t ScriptMaker(t pkg_resources(tcanonicalize_name(t configparsers.whlit WheelCachecB@s eZdZdZdZRS(s&A cache of wheels for future installs.cC@s*|o t|nd|_||_dS(sCreate a wheel cache. :param cache_dir: The root of the cache. :param format_control: A pip.index.FormatControl object to limit binaries being read from the cache. N(RtNonet _cache_dirt_format_control(tselft cache_dirtformat_control((sA/usr/lib/python2.6/site-packages/pip-8.1.1-py2.6.egg/pip/wheel.pyt__init__8scC@st|i||i|S(N(t cached_wheelRR(Rtlinkt package_name((sA/usr/lib/python2.6/site-packages/pip-8.1.1-py2.6.egg/pip/wheel.pyR!Bs(t__name__t __module__t__doc__R R!(((sA/usr/lib/python2.6/site-packages/pip-8.1.1-py2.6.egg/pip/wheel.pyR5s cC@s|ig}|idj o6|idj o&|idi|i|igndi|}ti|ii }|d |dd!|dd!|dg}t i i|d|S(s Return a directory to store cached wheels in for link. Because there are M wheels for any one sdist, we provide a directory to cache them in, and then consult that directory when looking up cache hits. We only insert things into the cache if they have plausible version numbers, so that we don't contaminate the cache with things that were not unique. E.g. ./package might have dozens of installs done for it and build a version of 0.0...and if we built and cached a wheel, we'd end up using the same wheel even if the source has been edited. :param cache_dir: The cache_dir being used by pip. :param link: The link of the sdist for which this will cache wheels. t=t#iiitwheelsN( turl_without_fragmentt hash_nameRthashtappendtjointhashlibtsha224tencodet hexdigesttostpath(RR"t key_partstkey_urlthashedtparts((sA/usr/lib/python2.6/site-packages/pip-8.1.1-py2.6.egg/pip/wheel.pyt_cache_for_linkGs  &(c C@s|p|S|p|S|io|S|ip|S|p|St|}tii||}d|jo|St||}yti|}Wn9t j o-}|i t i t i fjo|SnXg} xd|D]\} yt | } Wntj o qnX| ipqn| i| i| fqW| p|S| itii|| dd} tiit| S(Ntbinaryii(tis_wheelt is_artifactRtpiptindextfmt_ctl_formatsR9R3tlistdirtOSErrorterrnotENOENTtENOTDIRtWheelRt supportedR-tsupport_index_mintsortR4R.tLinkR( RR"RR#tcanonical_nametformatstroott wheel_namestet candidatest wheel_nametwheelR4((sA/usr/lib/python2.6/site-packages/pip-8.1.1-py2.6.egg/pip/wheel.pyR!psH      tsha256ic C@sti|}d}t|dii}zG|~}x7t|d|D]#}|t|7}|i|qNWWdQXdt|i i di d}||fS(s6Return (hash, length) for path using hashlib.new(algo)itrbtsizeNssha256=tlatin1R'( R/tnewtopent__exit__t __enter__RtlentupdateRtdigesttdecodetrstrip( R4talgot blocksizethtlengtht_[1]tftblockR\((sA/usr/lib/python2.6/site-packages/pip-8.1.1-py2.6.egg/pip/wheel.pytrehashs&cC@sKtiddjoh}d}nhdd6}d}t||||S(Niitbttnewline(tsyst version_infoRW(tnametmodetnltbin((sA/usr/lib/python2.6/site-packages/pip-8.1.1-py2.6.egg/pip/wheel.pyt open_for_csvs   c C@stii|ot|dii}zl|~}|i}|idptSt i i t i }d|ti i d}|i}WdQXt|dii}z'|~}|i||i|WdQXtSdS(sLReplace #!python with #!/path/to/python Return True if file was changed.RSs#!pythons#!tasciiNtwb(R3R4tisfileRWRXRYtreadlinet startswithtFalseRjt executableR1tgetfilesystemencodingtlineseptreadtwritetTrue(R4Rctscriptt firstlinetexenametrestt_[2]((sA/usr/lib/python2.6/site-packages/pip-8.1.1-py2.6.egg/pip/wheel.pyt fix_scripts& & sZ^(?P(?P.+?)(-(?P\d.+?))?) \.dist-info$cC@s|idd}xti|D]}ti|}|o|id|jotttii||di i }zB|~}x2|D]*}|i i }|djot SqWWdQXq"q"WtS(sP Return True if the extracted wheel in wheeldir should go into purelib. t-t_RltWHEELsroot-is-purelib: trueN(treplaceR3R@t dist_info_retmatchtgroupRWR4R.RXRYtlowerR^R|Rv(Rltwheeldirt name_foldedtitemRRcRQtline((sA/usr/lib/python2.6/site-packages/pip-8.1.1-py2.6.egg/pip/wheel.pytroot_is_purelibs5 cC@stii|p hhfSt|ii}zT|~}t}x.|D]&}|i|i|idqQW|i dWdQXt i }d|_ |i |h}h}|idot|id}n|idot|id}n||fS(Ns icS@s|S(((toption((sA/usr/lib/python2.6/site-packages/pip-8.1.1-py2.6.egg/pip/wheel.pytstconsole_scriptst gui_scripts(R3R4texistsRWRXRYRR{tstriptseekRtRawConfigParsert optionxformtreadfpt has_sectiontdicttitems(tfilenameRctfptdataRtcptconsoletgui((sA/usr/lib/python2.6/site-packages/pip-8.1.1-py2.6.egg/pip/wheel.pytget_entrypointss& #    c 2/@s|p.t|d|d|d|d|d| }nt|o|dn |dg gitiitii} htg} |otii } zQ| ~ } t i ii z*t i dt i| d td tWd QXWd QXti| ind t fd d d  fd}|| t ptdtii dd}t|\fd}xD]}d }d }xtitii|D]g}d }|djot}|}ntii||} ||}|| |td|d|qWqWtd |d t _td0 _t _ fd}| _d _i dd }|odti!jo$d|}| i" i#|nti!i$dddjo1dt%i&d |f}| i" i#|ndt%i&d |f}| i" i#|g}D]$}t'i(d |o ||qq~}x|D] }|=qWni d!d }|odti!jo$d"|}| i" i#|nd#t%i&d |f}| i" i#|g}D]$}t'i(d$|o ||qkqk~}x|D] }|=qWnt)djo?| i" i*g}i+D]} |d%| q~nt)djoI| i" i*g}!i+D]} |!d%| q6~!htd&6ntii dd'}"tii dd(}#t,|#d)ii }$z|$~$}%|%i-d*Wd QXt.i/|#|"| i0|"tii dd+}&tii dd,}'t1|&d-ii }(z3|(~(})t1|'d.ii }*z|*~*}+t2i3|)},t2i4|+}-xl|,D]d}.i |.d|.d|.d<|.djo"t5|.d\|.d<|.d/WWd QXWd QXt.i/|'|&d S(1sInstall a wheeltuserthomeRLtisolatedtprefixtpurelibtplatlibtignoretforcetquietNcS@s%tii||itiidS(Nt/(R3R4trelpathRtsep(tsrctp((sA/usr/lib/python2.6/site-packages/pip-8.1.1-py2.6.egg/pip/wheel.pytnormpathsc@sD|}|}||<|oi|ndS(s6Map archive RECORD paths to installation RECORD paths.N(tadd(tsrcfiletdestfiletmodifiedtoldpathtnewpath(Rtlib_dirtchangedRt installed(sA/usr/lib/python2.6/site-packages/pip-8.1.1-py2.6.egg/pip/wheel.pytrecord_installeds  c @st|xti|D]s\}}}|t|itii}tii||} |o-|itiiddi doqnx|D]} tii||| } |o1|djo$| i doi | qq|o^| i doN| i i i iddi o# p tdi | qqWx3|D]+} |o|| oq^ntii|| } tii||| }t| ti| |ti| }ttd o ti||i|ifnti| tioAti| }|itiBtiBtiB}ti||nt}|o||}n| ||q^WqWdS( Niis.dataRhs .dist-infoRRsMultiple .dist-info directoriestutime(RR3twalkRZtlstripR4RR.tsplittendswithR-RRut project_nameRtAssertionErrortshutiltcopyfiletstatthasattrRtst_atimetst_mtimetaccesstX_OKtst_modetS_IXUSRtS_IXGRPtS_IXOTHtchmodRv(tsourcetdesttis_basetfixertfiltertdirtsubdirstfilestbasedirtdestdirtst destsubdirRdRRtstt permissionsR(treqtinfo_dirRt data_dirs(sA/usr/lib/python2.6/site-packages/pip-8.1.1-py2.6.egg/pip/wheel.pytclobbersL -$    s!%s .dist-info directory not foundisentry_points.txtc@s|iido|d }nO|iido|d }n+|iido|d }n|}|jp |jS(Ns.exeis -script.pyis.pya(RR(Rlt matchname(RR(sA/usr/lib/python2.6/site-packages/pip-8.1.1-py2.6.egg/pip/wheel.pytis_entrypoint_wrapper`stscriptsRRRhc@s`|idjotd|fnih|id6|iiddd6|id6S(NsInvalid script entry point: %s for req: %s - A callable suffix is required. Cf https://packaging.python.org/en/latest/distributing.html#console-scripts for more information.tmodulet.it import_nametfunc(tsuffixRRtscript_templateRR(tentry(Rtmaker(sA/usr/lib/python2.6/site-packages/pip-8.1.1-py2.6.egg/pip/wheel.pyt_get_script_texts  s# -*- coding: utf-8 -*- import re import sys from %(module)s import %(import_name)s if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) sys.exit(%(func)s()) R=tENSUREPIP_OPTIONSspip = t altinstalls pip%s = %siispip(\d(\.\d)?)?$t easy_installseasy_install = seasy_install-%s = %sseasy_install(-\d\.\d)?$s%s = %sRt INSTALLERs INSTALLER.pipRrspip tRECORDs RECORD.piptrsw+i(Rh(7R RR^R3R4RtsetRRXRYtwarningstcatch_warningstfilterwarningst compileallt compile_dirR|tloggertdebugtgetvalueRvRRR.RR@RRRtvariantstset_modeRRtpoptenvirontextendtmaketgetRjtversiontreRRZt make_multipleRRWR{RtmoveR-RptcsvtreadertwriterRftwriterow(2RlRRRRRLt pycompiletschemeRRRt generatedRctstdoutRtep_fileRtdatadirRRtsubdirRRt pip_scripttspecRtktpip_epteasy_install_scriptt_[3]teasy_install_ept_[4]tkvt_[5]t installerttemp_installert_[6]tinstaller_filetrecordt temp_recordt_[7]t record_int_[8]t record_outR R trowRdRatl(( RRRRRRRRRRRRsA/usr/lib/python2.6/site-packages/pip-8.1.1-py2.6.egg/pip/wheel.pytmove_wheel_filess     % :   $   # 8 89(& &&"#*c@s"tifd}|S(Nc?@sJt}x:||D])}||jo|i||VqqWdS(N(RR(targstkwtseenR(tfn(sA/usr/lib/python2.6/site-packages/pip-8.1.1-py2.6.egg/pip/wheel.pytuniques    (t functoolstwraps(R.R/((R.sA/usr/lib/python2.6/site-packages/pip-8.1.1-py2.6.egg/pip/wheel.pyt_uniquescc@sddkl}ti||id}x|D]{}tii|i|d}|V|i doDtii |\}}|d }tii||d}|Vq5q5WdS(s Yield all the uninstallation paths for dist based on RECORD-without-.pyc Yield paths to all the files in RECORD. For each .py file in RECORD, add the .pyc in the same directory. UninstallPathSet.add() takes care of the __pycache__ .pyc. i(tFakeFileRs.pyis.pycN( t pip.utilsR3R R tget_metadata_linesR3R4R.tlocationRR(tdistR3RR(R4tdnR.tbase((sA/usr/lib/python2.6/site-packages/pip-8.1.1-py2.6.egg/pip/wheel.pytuninstallation_pathss  c C@syg}tid|D] }||q~d}|id}ti|}|di}ttt |i d}|SWnt SXdS(s Return the Wheel-Version of an extracted wheel, if possible. Otherwise, return False if we couldn't parse / extract it. iRs Wheel-VersionRN( Rt find_on_pathRt get_metadataRtparsestrRttupletmaptintRRv(t source_dirRctdR7t wheel_dataR((sA/usr/lib/python2.6/site-packages/pip-8.1.1-py2.6.egg/pip/wheel.pyt wheel_version3s1cC@s|ptd|n|dtdjo,td|ditt|fn4|tjo&tidditt|ndS(s Raises errors or warns if called with an incompatible Wheel-Version. Pip should refuse to install a Wheel-Version that's a major series ahead of what it's compatible with (e.g 2.0 > 1.1); and warn when installing a version only minor version ahead (e.g 1.2 > 1.1). version: a 2-tuple representing a Wheel-Version (Major, Minor) name: name of wheel or package to raise exception about :raises UnsupportedWheel: when an incompatible Wheel-Version is given s(%s is in an unsupported or invalid wheelisB%s's Wheel-Version (%s) is not compatible with this version of pipRs*Installing from a newer Wheel-Version (%s)N(R tVERSION_COMPATIBLER.R?tstrRtwarning(RRl((sA/usr/lib/python2.6/site-packages/pip-8.1.1-py2.6.egg/pip/wheel.pytcheck_compatibilityFs & REcB@sDeZdZeideiZdZddZ ddZ RS(s A wheel files^(?P(?P.+?)-(?P\d.*?)) ((-(?P\d.*?))?-(?P.+?)-(?P.+?)-(?P.+?) \.whl|\.dist-info)$c@sii|}|ptd|n|_|ididd_|ididd_|idid_ |idid_ |id id_ t fd i D_ d S( sX :raises InvalidWheelFilename: when the filename is invalid for a wheel s!%s is not a valid wheel filename.RlRRtvertpyverRtabitplatc3@sJxC|]<}x3iD](}xiD]}|||fVq&WqWqWdS(N(tabistplats(t.0txtytz(R(sA/usr/lib/python2.6/site-packages/pip-8.1.1-py2.6.egg/pip/wheel.pys s N(t wheel_file_reRRRRRRlRRt pyversionsRMRNRt file_tags(RRt wheel_info((RsA/usr/lib/python2.6/site-packages/pip-8.1.1-py2.6.egg/pip/wheel.pyR os cC@sn|djo ti}ng}|iD]'}||jo||i|q(q(~}|o t|SdS(s" Return the lowest index that one of the wheel's file_tag combinations achieves in the supported_tags list e.g. if there are 8 supported tags, and one of the file tags is first in the list, then return 0. Returns None is the wheel is not supported. N(RR tsupported_tagsRUR>tmin(RttagsRctctindexes((sA/usr/lib/python2.6/site-packages/pip-8.1.1-py2.6.egg/pip/wheel.pyRGs  >cC@s6|djo ti}ntt|i|iS(s'Is this wheel supported on this system?N(RR RWtboolRt intersectionRU(RRY((sA/usr/lib/python2.6/site-packages/pip-8.1.1-py2.6.egg/pip/wheel.pyRFs  N( R$R%R&RtcompiletVERBOSERSR RRGRF(((sA/usr/lib/python2.6/site-packages/pip-8.1.1-py2.6.egg/pip/wheel.pyREcs   t WheelBuildercB@sSeZdZdddZddZdZddZdZe dZ RS(s#Build wheels from a RequirementSet.cC@sQ||_||_|ii|_|i|_|pg|_|pg|_dS(N( trequirement_settfindert _wheel_cacheRt _cache_roottwheel_download_dirt _wheel_dirt build_optionstglobal_options(RRaRbRgRh((sA/usr/lib/python2.6/site-packages/pip-8.1.1-py2.6.egg/pip/wheel.pyR s    c C@stid}z|i||d|omy_ti|d}tii||}titii|||t i d||SWqqXn|i |dSWdt |XdS(siBuild one wheel. :return: The filename of the built wheel, or None if the build failed. s pip-wheel-t python_tagisStored in directory: %sN(ttempfiletmkdtempt_WheelBuilder__build_oneR3R@R4R.RRRtinfot _clean_oneRR(RRt output_dirRittempdRPt wheel_path((sA/usr/lib/python2.6/site-packages/pip-8.1.1-py2.6.egg/pip/wheel.pyt _build_ones cC@s'tiddt|igt|iS(Ns-us-c(RjRwRtsetup_pytlistRh(RR((sA/usr/lib/python2.6/site-packages/pip-8.1.1-py2.6.egg/pip/wheel.pyt_base_setup_argss  c C@s|i|}d|if}t|ii}z|~}tid||dd|g|i}|dj o|d|g7}ny't |d|i dt d|t SWn(|i d tid |it SXWdQXdS( Ns#Running setup.py bdist_wheel for %ssDestination directory: %st bdist_wheels-ds --python-tagtcwdt show_stdouttspinnerterrorsFailed building wheel for %s(RuRlRRXRYRRRgRR t setup_py_dirRvR|tfinishRz( RRRpRit base_argst spin_messageRcRyt wheel_args((sA/usr/lib/python2.6/site-packages/pip-8.1.1-py2.6.egg/pip/wheel.pyt __build_ones#   c C@su|i|}tid|i|ddg}y!t|d|idttSWntid|itSXdS(NsRunning setup.py clean for %stcleans--allRwRxs Failed cleaning build dir for %s( RuRRmRlR RARvR|Rz(RRR}t clean_args((sA/usr/lib/python2.6/site-packages/pip-8.1.1-py2.6.egg/pip/wheel.pyRnscC@s0|ip|o |ipt|ii|i|iii}g}xN|D]F}|ioqTn|i o"|pt i d|i qqT|i o"|pt i d|i qqT|o|io|ii oqT|o|i oqT|o|i}|i\}}tii|d |d joqTndtii|iit|i jot i d|i qTqn|i|qTW|ptSt i ddig}|D]}||i q~tiizgg} } x|D]}d } |onti } t!|i|i} yt"| Wqt#j o/} t i$d|i | | i|q qXn |i} |i%|| d| }|o| i||o|io6t&i'i(t&i'i|it) otd n|i*|i+|ii,|_tii-t.||_|ii ptt/|i|id t0d |ii1qq | i|q WWd QX| o;t i d d ig}| D]}||i q~n| o;t i dd ig}| D]}||i q~nt2| djS(sBuild wheels. :param unpack: If True, replace the sdist we built from with the newly built wheel, in preparation for installation. :return: True if all the wheels built correctly. s(Skipping %s, due to already being wheel.s2Skipping bdist_wheel for %s, due to being editableR:sCSkipping bdist_wheel for %s, due to binaries being disabled for it.s*Building wheels for collected packages: %ss, s Building wheel for %s failed: %sRisbad source dir - missing markertsessionNsSuccessfully built %st sFailed to build %si(3RfRdRRat prepare_filesRbt requirementstvaluest constraintR;RRmRlteditableR"R<RAtsplitextR=R>tegg_info_matchesRR?RRR-R|R.RRXRYR timplementation_tagR9RRAtwarnRrR3R4RR tremove_temporary_sourcetbuild_locationt build_dirRIRRRvRRZ(Rt autobuildingtreqsettbuildsetRR"R9textRct build_successt build_failureRiRoRNt wheel_fileRR((sA/usr/lib/python2.6/site-packages/pip-8.1.1-py2.6.egg/pip/wheel.pytbuilds"        .             22N( R$R%R&RR RrRuRlRnRvR(((sA/usr/lib/python2.6/site-packages/pip-8.1.1-py2.6.egg/pip/wheel.pyR`s     (TR&t __future__RRR RBR0R/tloggingR3tos.pathRRRRjRjRtbase64Rt email.parserRtpip._vendor.sixRR=t pip.compatRt pip.downloadRRtpip.exceptionsRRR t pip.locationsR R R R4R RRRRt pip.utils.uiRtpip.utils.loggingRtpip.utils.setuptools_buildRtpip._vendor.distlib.scriptsRt pip._vendorRtpip._vendor.packaging.utilsRtpip._vendor.six.movesRt wheel_extREt getLoggerR$RtobjectRR9R!RfRpRR^R_RRRRvRR|R*R2R:RDRHRER`(((sA/usr/lib/python2.6/site-packages/pip-8.1.1-py2.6.egg/pip/wheel.pytsl               (  ) '    !   7