ó Àfc@sïdZddlmZddlZddlZddlZddlZddlZddlm Z m Z m Z ddl m Z ddlm ZddlmZddlmZejd ejƒjZd Zd „Zd efd „ƒYZdS(sWheels support.iÿÿÿÿ(t get_platformN(t Distributiont PathMetadatat parse_version(tPY3(R(t pep425tags(twrite_requirementss‚^(?P.+?)-(?P\d.*?) ((-(?P\d.*?))?-(?P.+?)-(?P.+?)-(?P.+?) )\.whl$sštry: __import__('pkg_resources').declare_namespace(__name__) except ImportError: __path__ = __import__('pkgutil').extend_path(__path__, __name__) c CsBxtj|ƒD]ô\}}}tjj||ƒ}xK|D]C}tjj||ƒ}tjj|||ƒ}tj||ƒq;Wxttt|ƒƒƒD]e\} } tjj|| ƒ}tjj||| ƒ}tjj |ƒs›tj||ƒ|| =q›q›WqWx3tj|dt ƒD]\}}}tj |ƒqWdS(sDMove everything under `src_dir` to `dst_dir`, and delete the former.ttopdownN( tostwalktpathtrelpathtjointrenamestreversedtlistt enumeratetexiststTruetrmdir( tsrc_dirtdst_dirtdirpathtdirnamest filenamestsubdirtftsrctdsttntd((s4/usr/lib/python2.7/site-packages/setuptools/wheel.pytunpacks %%tWheelcBs5eZd„Zd„Zd„Zd„Zd„ZRS(cCswttjj|ƒƒ}|dkr7td|ƒ‚n||_x0|jƒjƒD]\}}t |||ƒqSWdS(Nsinvalid wheel name: %r( t WHEEL_NAMERR tbasenametNonet ValueErrortfilenamet groupdicttitemstsetattr(tselfR%tmatchtktv((s4/usr/lib/python2.7/site-packages/setuptools/wheel.pyt__init__7s   cCs7tj|jjdƒ|jjdƒ|jjdƒƒS(s>List tags (py_version, abi, platform) supported by this wheel.t.(t itertoolstproductt py_versiontsplittabitplatform(R)((s4/usr/lib/python2.7/site-packages/setuptools/wheel.pyttags?scs/tjƒ‰t‡fd†|jƒDƒtƒS(s5Is the wheel is compatible with the current platform?c3s!|]}|ˆkrtVqdS(N(R(t.0tt(tsupported_tags(s4/usr/lib/python2.7/site-packages/setuptools/wheel.pys Hs(Rt get_supportedtnextR5tFalse(R)((R8s4/usr/lib/python2.7/site-packages/setuptools/wheel.pyt is_compatibleEs cCsAtd|jd|jd|jdkr-dntƒƒjƒdS(Nt project_nametversionR4tanys.egg(RR=R>R4R#Rtegg_name(R)((s4/usr/lib/python2.7/site-packages/setuptools/wheel.pyR@Js$c stj|jƒ‰d|j|jf}d|‰d|‰‡‡fd†}|dƒ}|dƒ}t|jdƒƒ}tdƒ|ko¡td ƒkns¹td |ƒ‚ntj |ƒˆj |ƒtj j |ˆƒ‰t j|ˆd t|ˆƒƒ‰d „‰tttˆˆjƒƒƒƒ‰‡‡‡fd †ˆjDƒ}tj j |dƒ}tjˆ|ƒtjtj j |dƒtj j |dƒƒtdtdˆd|ƒƒ} t| jdƒdtj j |dƒƒtj j |ˆƒ‰tj j ˆdƒ} tj j| ƒrÒtj j |ddƒ} tj | ƒxstj| ƒD]b} | jdƒrtjtj j | | ƒƒq\tjtj j | | ƒtj j | | ƒƒq\Wtj| ƒnx:t tj j‡fd†d!DƒƒD]} t!| |ƒqøWtj jˆƒr1tjˆƒntj j |dƒ}tj j|ƒrt"|ƒ}|j#ƒj$ƒ}WdQXx‘|D]†}tj j ||j$dƒŒ}tj j |dƒ}tj j|ƒr†tj j|ƒ r†t"|d ƒ}|j%t&ƒWdQXq†q†WnWdQXdS("s"Install wheel as an egg directory.s%s-%ss %s.dist-infos%s.datacscˆjdˆ|fƒD}tr7|jƒjdƒn |jƒ}tjjƒj|ƒSWdQXdS(Ns%s/%ssutf-8(topenRtreadtdecodetemailtparsertParsertparsestr(tnametfptvalue(t dist_infotzf(s4/usr/lib/python2.7/site-packages/setuptools/wheel.pyt get_metadataVs'tWHEELtMETADATAs Wheel-Versions1.0s2.0dev0s$unsupported wheel format version: %stmetadatacSsd|_t|ƒS(N(R#tmarkertstr(treq((s4/usr/lib/python2.7/site-packages/setuptools/wheel.pytraw_reqls c sJi|]@}tt‡fd†tˆˆj|fƒƒDƒƒƒ|“qS(c3s!|]}|ˆkr|VqdS(N((R6RS(tinstall_requires(s4/usr/lib/python2.7/site-packages/setuptools/wheel.pys rs(Rtsortedtmaptrequires(R6textra(tdistRURT(s4/usr/lib/python2.7/site-packages/setuptools/wheel.pys qs sEGG-INFOsPKG-INFOtattrsRUtextras_requiretegg_infos requires.txttscriptss.pycc3s$|]}tjjˆ|ƒVqdS(N(RR R (R6R(t dist_data(s4/usr/lib/python2.7/site-packages/setuptools/wheel.pys “stdatatheaderstpurelibtplatlibsnamespace_packages.txtNR.s __init__.pytw(R`RaRbRc('tzipfiletZipFileR%R=R>RtgetR$Rtmkdirt extractallR R Rt from_locationRRRVRWRXtextrastrenametSetuptoolsDistributiontdictRtget_command_objR#RtlistdirtendswithtunlinkRtfilterRRARBR2twritetNAMESPACE_PACKAGE_INIT(R)tdestination_eggdirt dist_basenameRMtwheel_metadatat dist_metadatat wheel_versionR\R]t setup_disttdist_data_scriptstegg_info_scriptstentryRtnamespace_packagesRItmodtmod_dirtmod_init((RZR_RKRURTRLs4/usr/lib/python2.7/site-packages/setuptools/wheel.pytinstall_as_eggPsr    (    !        %(t__name__t __module__R-R5R<R@Rƒ(((s4/usr/lib/python2.7/site-packages/setuptools/wheel.pyR 5s     (t__doc__tdistutils.utilRRDR/RtreRet pkg_resourcesRRRtsetuptools.extern.sixRt setuptoolsRmRtsetuptools.command.egg_infoRtcompiletVERBOSER*R!RuRtobjectR (((s4/usr/lib/python2.7/site-packages/setuptools/wheel.pyts"