/usr/lib/python2.6/site-packages/pip-7.1.2-py2.6.egg/pip
NameSizeModeActions
commands/-0755rm
compat/-0755rm
models/-0755rm
operations/-0755rm
req/-0755rm
utils/-0755rm
vcs/-0755rm
_vendor/-0755rm
basecommand.py106170644editdlrm
basecommand.pyc83260644editdlrm
baseparser.py104650644editdlrm
baseparser.pyc113650644editdlrm
cmdoptions.py147010644editdlrm
cmdoptions.pyc144450644editdlrm
download.py319360644editdlrm
download.pyc265280644editdlrm
exceptions.py12570644editdlrm
exceptions.pyc35450644editdlrm
index.py478470644editdlrm
index.pyc410530644editdlrm
locations.py66440644editdlrm
locations.pyc57190644editdlrm
pep425tags.py44270644editdlrm
pep425tags.pyc42820644editdlrm
status_codes.py1560644editdlrm
status_codes.pyc4130644editdlrm
wheel.py301860644editdlrm
wheel.pyc250210644editdlrm
__init__.py104140755editdlrm
__init__.pyc95700644editdlrm
__main__.py5840644editdlrm
__main__.pyc5080644editdlrm
Edit: /usr/lib/python2.6/site-packages/pip-7.1.2-py2.6.egg/pip/wheel.pyc (25021B)
vVc#@@sdZddklZddkZddkZddkZddkZddkZddkZddk Z ddk Z ddk Z ddk Z ddk Z ddkZddkZddkZddklZddklZddklZddkZddklZlZddklZlZdd klZl Z dd kl!Z!dd k"l#Z#l$Z$l%Z%l&Z&l'Z'dd k(l)Z)dd k*l+Z+ddk,l-Z-ddk.l/Z/dZ0ddfZ1ei2e3Z4de5fdYZ6dZ7dZ8ddd>dZ9dZ:dZ;e i<de i=Z>dZ?dZ@eAeBeBeCeBeAdZDdZEeEd ZFd!ZGd"ZHd#e5fd$YZId%e5fd&YZJdS('sH Support for installing and building the "wheel" binary package format. i(tabsolute_importN(turlsafe_b64encode(tParser(tStringIO(t path_to_urlt unpack_url(tInvalidWheelFilenametUnsupportedWheel(tdistutils_schemetPIP_DELETE_MARKER_FILENAME(t pep425tags(tcall_subprocesst ensure_dirtmake_path_relativetcaptured_stdouttrmtree(t indent_log(t ScriptMaker(t pkg_resources(t configparsers.whlit WheelCachecB@s eZdZdZdZRS(s&A cache of wheels for future installs.cC@s0|otii|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(tostpatht expandusertNonet _cache_dirt_format_control(tselft cache_dirtformat_control((sA/usr/lib/python2.6/site-packages/pip-7.1.2-py2.6.egg/pip/wheel.pyt__init__3s#cC@st|i||i|S(N(t cached_wheelRR(Rtlinkt package_name((sA/usr/lib/python2.6/site-packages/pip-7.1.2-py2.6.egg/pip/wheel.pyR=s(t__name__t __module__t__doc__RR(((sA/usr/lib/python2.6/site-packages/pip-7.1.2-py2.6.egg/pip/wheel.pyR0s 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 hexdigestRR(RR t key_partstkey_urlthashedtparts((sA/usr/lib/python2.6/site-packages/pip-7.1.2-py2.6.egg/pip/wheel.pyt_cache_for_linkBs  &(c C@s|p|S|p|S|io|S|ip|S|p|Sti|i}tii||}d|jo|St||}yt i |}Wn9t j o-}|i t i t ifjo|SnXg} xd|D]\} yt| } Wntj o qnX| ipqn| i| i| fqW| p|S| it ii|| dd} tiit| dtS(Ntbinaryiittrusted(tis_wheelt is_artifactRt safe_nametlowertpiptindextfmt_ctl_formatsR5RtlistdirtOSErrorterrnotENOENTtENOTDIRtWheelRt supportedR+tsupport_index_mintsortRR,tLinkRtTrue( RR RR!tcanonical_nametformatstroott wheel_namestet candidatest wheel_nametwheelR((sA/usr/lib/python2.6/site-packages/pip-7.1.2-py2.6.egg/pip/wheel.pyRksH     tsha256ic C@sti|}d}t|dii}zW|~}|i|}x8|o0|t|7}|i||i|}qMWWdQXdt|i i di d}||fS(s6Return (hash, length) for path using hashlib.new(algo)itrbNssha256=tlatin1R%( R-tnewtopent__exit__t __enter__treadtlentupdateRtdigesttdecodetrstrip( Rtalgot blocksizethtlengtht_[1]tftblockR\((sA/usr/lib/python2.6/site-packages/pip-7.1.2-py2.6.egg/pip/wheel.pytrehashs& cC@sKtiddjoh}d}nhdd6}d}t||||S(Niitbttnewline(tsyst version_infoRV(tnametmodetnltbin((sA/usr/lib/python2.6/site-packages/pip-7.1.2-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(RRtisfileRVRWRXtreadlinet startswithtFalseRjt executableR/tgetfilesystemencodingtlinesepRYtwriteRI(RRctscriptt firstlinetexenametrestt_[2]((sA/usr/lib/python2.6/site-packages/pip-7.1.2-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(treplaceRR?t dist_info_retmatchtgroupRVRR,RWRXR;R^RIRv(Rltwheeldirt name_foldedtitemRRcRQtline((sA/usr/lib/python2.6/site-packages/pip-7.1.2-py2.6.egg/pip/wheel.pytroot_is_purelibs5 cC@stii|p hhfSt|ii}zT|~}t}x.|D]&}|i|i|idqQW|i dWdQXt i }|i |h}h}|i dot|id}n|i dot|id}n||fS(Ns itconsole_scriptst gui_scripts(RRtexistsRVRWRXRRztstriptseekRtRawConfigParsertreadfpt has_sectiontdicttitems(tfilenameRctfptdataRtcptconsoletgui((sA/usr/lib/python2.6/site-packages/pip-7.1.2-py2.6.egg/pip/wheel.pytget_entrypointss$ #   c -,@s|p(t|d|d|d|d|}nt|o|dn |dgg itiitii} htg} |otii } zQ| ~ } t i ii z*t i dt i| dtd tWd QXWd QXti| ind tfd  d d  fd } | | tptdtiidd}t|\ fd}x D]}d }d }xtitii|D]g}d }|djot}|}ntii||} ||}| | |td|d|qWqWtd |dt_td+_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 ||qbqb~}x|D] }|=qWnt)djo?| i"i*g}i+D]}|d$|q~nt) djoI| i"i*g} i+D]}| d$|q-~ htd%6ntiidd&}!tiidd'}"t,|!d(ii }#z*|#~#}$t,|"d)ii }%z|%~%}&t-i.|$}'t-i/|&}(xl|'D]d})i |)d|)d|)d<|)djo"t0|)d\|)d<|)d* 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(RtVERSION_COMPATIBLER,R3tstrRtwarning(RRl((sA/usr/lib/python2.6/site-packages/pip-7.1.2-py2.6.egg/pip/wheel.pytcheck_compatibility1s & RDcB@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-7.1.2-py2.6.egg/pip/wheel.pys ns N(t wheel_file_reRRRRRRlRRt pyversionsRARBRt file_tags(RRt wheel_info((RsA/usr/lib/python2.6/site-packages/pip-7.1.2-py2.6.egg/pip/wheel.pyRZs 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_tagsRIR=tmin(RttagsRctctindexes((sA/usr/lib/python2.6/site-packages/pip-7.1.2-py2.6.egg/pip/wheel.pyRFrs  >cC@s6|djo ti}ntt|i|iS(s'Is this wheel supported on this system?N(RR RKtboolRt intersectionRI(RRM((sA/usr/lib/python2.6/site-packages/pip-7.1.2-py2.6.egg/pip/wheel.pyRE~s  N( R"R#R$RtcompiletVERBOSERGRRRFRE(((sA/usr/lib/python2.6/site-packages/pip-7.1.2-py2.6.egg/pip/wheel.pyRDNs   t WheelBuildercB@s;eZdZdddZdZdZedZRS(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(RRURVR[R\((sA/usr/lib/python2.6/site-packages/pip-7.1.2-py2.6.egg/pip/wheel.pyRs    c C@stid}z|i||ony_ti|d}tii||}titii|||t i d||SWqdSXndSWdt |XdS(siBuild one wheel. :return: The filename of the built wheel, or None if the build failed. s pip-wheel-isStored in directory: %sN( ttempfiletmkdtempt_WheelBuilder__build_oneRR?RR,RRRtinfoRR(RRt output_dirttempdRPt wheel_path((sA/usr/lib/python2.6/site-packages/pip-7.1.2-py2.6.egg/pip/wheel.pyt _build_ones c C@stidd|igt|i}tid|itid||dd|g|i }y!t |d|i dt t SWntid |it SXdS( Ns-csjimport setuptools;__file__=%r;exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))s#Running setup.py bdist_wheel for %ssDestination directory: %st bdist_wheels-dtcwdt show_stdoutsFailed building wheel for %s(RjRwtsetup_pytlistR\RR`RlRR[R R5RvRIterror(RRRbt base_argst wheel_args((sA/usr/lib/python2.6/site-packages/pip-7.1.2-py2.6.egg/pip/wheel.pyt __build_ones  cC@s*|ip|o |ipt|ii|i|iii}g}xW|D]O}|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|iiti|i ijot i d|i qTqn|i|qTW|ptSt i ddig}|D]}||i q~tii zgg} } x|D]y}|oet!|i|i} yt"| Wqt#j o/} t i$d|i | | i|qqXn |i} |i%|| } | o| i||o|io6t&i'i(t&i'i|it) otdn|i*|i+|ii,|_tii-t.| d t|_|ii ptt/|i|id t0d |ii1qq| i|qWWd 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 the 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 editableR6sCSkipping bdist_wheel for %s, due to binaries being disabled for it.s*Building wheels for collected packages: %ss, s Building wheel for %s failed: %ssbad source dir - missing markerR7tsessionNsSuccessfully built %st sFailed to build %si(3RZRXRRUt prepare_filesRVt requirementstvaluest constraintR8RR`RlteditableR R9R5tsplitextR<R=tegg_info_matchesRR>RRR:R;R+RIR,RRWRXR5R R@twarnRdRRRR tremove_temporary_sourcetbuild_locationt build_dirRHRRRvRnRZ(Rt autobuildingtreqsettbuildsetRR R-textRct build_successt build_failureRaRNt wheel_fileRR((sA/usr/lib/python2.6/site-packages/pip-7.1.2-py2.6.egg/pip/wheel.pytbuilds"        .          22N( R"R#R$RRRdR_RvR(((sA/usr/lib/python2.6/site-packages/pip-7.1.2-py2.6.egg/pip/wheel.pyRTs    (KR$t __future__RRRRAR$R-tloggingRtos.pathRRRRjR]Rtbase64Rt email.parserRtpip._vendor.sixRR<t pip.downloadRRtpip.exceptionsRRt pip.locationsRR R R(R R R RRtpip.utils.loggingRtpip._vendor.distlib.scriptsRt pip._vendorRtpip._vendor.six.movesRt wheel_extR9t getLoggerR"RtobjectRR5RRfRpRRRRSRRRRvRRIRR&R.R8R<RDRT(((sA/usr/lib/python2.6/site-packages/pip-7.1.2-py2.6.egg/pip/wheel.pytsd               (  ) '       7