ó b-äQc@siddlmZddlmZddlmZddlmZddlZddl Z ddl Z ddl Z ddlmZd#Z d$d%d&d'd(gZ d„Zdd„Zd„Zdd„Zdd„Zd„Ze jde jƒZd„Zedƒee jde jƒƒfedƒefedƒefed ƒefgZd!efd"„ƒYZdS()iÿÿÿÿ(tsdist(t convert_path(tlog(tglobNtREADMEs README.rsts README.txts<ts"t"s't's&t&cCs-x&tD]\}}|j||ƒ}qW|S(N(tentitiestreplace(tdatatoldtnew((s</usr/lib/python2.7/site-packages/setuptools/command/sdist.pytunescapescs‡‡fd†}|S(Nc3sut|dƒ}|jƒ}|jƒxIˆj|ƒD]8}|jdƒ}ˆr_ˆ|ƒ}nt||ƒVq5WdS(NtrUi(topentreadtclosetfinditertgrouptjoinpath(tdirnametfilenametfR tmatchtpath(tpatterntpostproc(s</usr/lib/python2.7/site-packages/setuptools/command/sdist.pytfinds  ((RRR((RRs</usr/lib/python2.7/site-packages/setuptools/command/sdist.pyt re_finders cCs|s |Stjj||ƒS(N(tosRtjoin(tprefixtsuffix((s</usr/lib/python2.7/site-packages/setuptools/command/sdist.pyR stccs@x9tjdƒD](}x|jƒ|ƒD] }|Vq)WqWdS(s%Find all files under revision controlssetuptools.file_findersN(t pkg_resourcestiter_entry_pointstload(Rteptitem((s</usr/lib/python2.7/site-packages/setuptools/command/sdist.pyt walk_revctrl-sccs¤xtD]•\}}t||ƒ}tjj|ƒrxe|||ƒD]Q}tjj|ƒrd|VqDtjj|ƒrDxt|ƒD] }|VqƒWqDqDWqqWdS(N(tfindersRR Rtisfiletisdirt_default_revctrl(RRtfinderR)((s</usr/lib/python2.7/site-packages/setuptools/command/sdist.pyR.3sc cst}t|dƒ}x«t|jdƒD]‰}|jƒ}t|ƒdkr(|\}}|jt|ƒƒ}|dkrŽ|dkrŽt}q±|dkr±|r±|j ƒPq±q(q(W|j ƒdSx;|j ƒD]-}|jƒ}|rÐt ||dƒVqÐqÐWdS( s$Find any 'svn:externals' directoriestrtR$itKs svn:externalstVNi( tFalseRtitertreadlinetsplittlenRtinttTrueRt splitlinesR( RRtfoundRtlinetpartstkindtlengthR ((s</usr/lib/python2.7/site-packages/setuptools/command/sdist.pytexternals_finder>s$       s%name="([^"]+)"(?![^>]+deleted="true")ccs3t|dƒ}|jƒ}|jƒ|jdƒrnxøtj|ƒD]#}t|t|jdƒƒƒVqDWnÁd}yt |j ƒdƒ}WnnX|dkrÄt j dt jj|ƒƒdSxhttj |jdƒdƒD]G}| sät|ƒd kr|d d krqänt||dƒVqäWdS( NRstD]}tjj|ƒrdSqW|jddjtƒƒdS(Ns,standard file not found: should have one of s, (RqR RRuRDR!(R^R((s</usr/lib/python2.7/site-packages/setuptools/command/sdist.pyRTòs  cCsƒtj|||ƒtjj|dƒ}ttdƒritjj|ƒritj|ƒ|jd|ƒn|j dƒj |ƒdS(Ns setup.cfgtlinkRM( Retmake_release_treeR RR!thasattrRutunlinkt copy_fileRQtsave_version_info(R^tbase_dirR…tdest((s</usr/lib/python2.7/site-packages/setuptools/command/sdist.pyR‹üs ! cCsYtjj|jƒstSt|jdƒ}z|jƒ}Wd|jƒX|djƒkS(NtrbUs+# file GENERATED by distutils, do NOT edit ( R RR,tmanifestR3RR5Rtencode(R^tfpt first_line((s</usr/lib/python2.7/site-packages/setuptools/command/sdist.pyt_manifest_is_not_generated s cCsÉtjd|jƒt|jdƒ}x“|D]‹}tjdkry|jdƒ}Wqtk r{tjd|ƒq,qXn|j ƒ}|j dƒs,| r§q,n|j j |ƒq,W|j ƒdS( sªRead the manifest file (named by 'self.manifest') and use it to fill in 'self.filelist', the list of files to include in the source distribution. sreading manifest file '%s'R’isUTF-8s"%r not UTF-8 decodable -- skippingt#N(i(RtinfoR“RRgt version_infotdecodetUnicodeDecodeErrorRDtstripRBRRRSR(R^R“R<((s</usr/lib/python2.7/site-packages/setuptools/command/sdist.pyt read_manifests    N(sformats=Ns6formats for source distribution (comma-separated list)(s dist-dir=RLsFdirectory to put the source distribution archive(s) in [default: dist](iii(ii(iii(ii(iii(t__name__t __module__t__doc__tNonet user_optionst negative_optRct_sdist__read_template_hackRgRšRfR‰RTR‹R—Rž(((s</usr/lib/python2.7/site-packages/setuptools/command/sdist.pyR€s(     5 (Rs README.rsts README.txt(s<R(s>R(s"R(s'R(s&R (tdistutils.command.sdistRRetdistutils.utilRRaRRR treRgR%RqR RR¢RRR*R.R@tcompiletIRCRJtMR+(((s</usr/lib/python2.7/site-packages/setuptools/command/sdist.pyts,0