ó ž­çSc@s ddlmZddlmZddlmZddljjZddl Z ddl Z ddl Z ddl m Z ddlmZddlZdZd d „Zd efd „ƒYZd d„Zede jde jƒƒe jgZdejfd„ƒYZdS(iÿÿÿÿ(tglob(t convert_path(tlogN(t svn_utils(tPY3tREADMEs README.rsts README.txttccs@x9tjdƒD](}x|jƒ|ƒD] }|Vq)WqWdS(s%Find all files under revision controlssetuptools.file_findersN(t pkg_resourcestiter_entry_pointstload(tdirnameteptitem((sB/usr/local/lib/python2.7/site-packages/setuptools/command/sdist.pyt walk_revctrlst re_findercBs8eZdZd„d„Zd„Zdd„ZeZRS(sc Finder that locates files based on entries in a file matched by a regular expression. cCs|S(N((tx((sB/usr/local/lib/python2.7/site-packages/setuptools/command/sdist.pytscCs%||_||_t|ƒ|_dS(N(tpatterntpostprocRt entries_path(tselftpathRR((sB/usr/local/lib/python2.7/site-packages/setuptools/command/sdist.pyt__init__s  ccs}t|dƒ}z|jƒ}Wd|jƒXxI|jj|ƒD]5}|jdƒ}|j|ƒ}tj||ƒVq@WdS(NtrUi( topentreadtcloseRtfinditertgroupRRtjoinpath(RR tfilenametftdatatmatchR((sB/usr/local/lib/python2.7/site-packages/setuptools/command/sdist.pyt_finder#s Rccsštj||jƒ}tjj|ƒs+dSxh|j||ƒD]T}tjj|ƒr^|Vq>tjj|ƒr>x|j|ƒD] }|Vq€Wq>q>WdS(N( RRRtosRtisfileR"tisdirtfind(RR RR ((sB/usr/local/lib/python2.7/site-packages/setuptools/command/sdist.pyR&0s(t__name__t __module__t__doc__RR"R&t__call__(((sB/usr/local/lib/python2.7/site-packages/setuptools/command/sdist.pyRs  ccs1x*tD]"}x||ƒD] }|VqWqWdS(sPrimary svn_cvs entry pointN(tfinders(R tfinderR ((sB/usr/local/lib/python2.7/site-packages/setuptools/command/sdist.pyt_default_revctrl@s s CVS/Entriess ^\w?/([^/]+)/tsdistcBsËeZdZdddddfdgZiZd „Zd „Zej dkpŠdej koidknpŠdej koˆdknZ e rœeZ nd„Z d„Z d„Zd„Zd„ZRS(s=Smart sdist that finds anything supported by revision controlsformats=s6formats for source distribution (comma-separated list)s keep-temptks1keep the distribution tree around after creating sarchive file(s)s dist-dir=tdsFdirectory to put the source distribution archive(s) in [default: dist]cCs|jdƒ|jdƒ}|j|_|jjtjj|jdƒƒ|jƒx!|j ƒD]}|j|ƒqaWddl }d|j j kr£|j ƒn|jƒt|jdgƒ}x<|jD]1}dd|f}||krÌ|j|ƒqÌqÌWdS(Ntegg_infos SOURCES.txtiÿÿÿÿtcheckt dist_filesR.R(t run_commandtget_finalized_commandtfilelisttappendR#RtjoinR1t check_readmetget_sub_commandstdistutils.commandtcommandt__all__tcheck_metadatatmake_distributiontgetattrt distributiont archive_files(Rtei_cmdtcmd_namet distutilsR3tfileR ((sB/usr/local/lib/python2.7/site-packages/setuptools/command/sdist.pytrun]s   "     cCsFytjj|ƒWn+tjƒdjjjdjƒ‚nXdS(Nittemplate( torigR.t read_templatetsystexc_infottb_nextttb_frametf_localsR(R((sB/usr/local/lib/python2.7/site-packages/setuptools/command/sdist.pyt__read_template_hackws !iiiiiicCsot|jjg}xÂ|D]º}t|tƒr|}d}x:|D]2}tjj|ƒrAd}|jj |ƒPqAqAW|sÓ|j ddj |ƒƒqÓqtjj|ƒrÂ|jj |ƒq|j d|ƒqWddg}xH|D]@}t t tjjt|ƒƒƒ}|rê|jj|ƒqêqêW|jjƒrÆ|jdƒ}|jj|jƒƒ|jjsÆxR|jD]D\} } } } |jjg| D]} tjj | | ƒ^qšƒqxWqÆn|jjƒrý|jd ƒ} |jj| jƒƒn|jjƒr4|jd ƒ}|jj|jƒƒn|jjƒrk|jd ƒ}|jj|jƒƒndS( Niis,standard file not found: should have one of s, sstandard file '%s' not founds test/test*.pys setup.cfgtbuild_pyt build_extt build_clibt build_scripts(tREADMESRAt script_namet isinstancettupleR#RtexistsR6R7twarnR8tlisttfilterR$Rtextendthas_pure_modulesR5tget_source_filestinclude_package_datat data_filesthas_ext_modulesthas_c_librariest has_scripts(Rt standardstfntaltstgot_ittoptionalRtfilesRQt_tsrc_dirt filenamesRRRRSRT((sB/usr/local/lib/python2.7/site-packages/setuptools/command/sdist.pyt add_defaultssL     !  0cCsEx>tD]}tjj|ƒrdSqW|jddjtƒƒdS(Ns,standard file not found: should have one of s, (RUR#RRYRZR8(RR((sB/usr/local/lib/python2.7/site-packages/setuptools/command/sdist.pyR9Âs  cCs†tjj|||ƒtjj|dƒ}ttdƒrltjj|ƒrltj|ƒ|j d|ƒn|j dƒj |ƒdS(Ns setup.cfgtlinkR1( RIR.tmake_release_treeR#RR8thasattrRYtunlinkt copy_fileR5tsave_version_info(Rtbase_dirRjtdest((sB/usr/local/lib/python2.7/site-packages/setuptools/command/sdist.pyRpÌs ! cCsYtjj|jƒstSt|jdƒ}z|jƒ}Wd|jƒX|djƒkS(NtrbUs+# file GENERATED by distutils, do NOT edit ( R#RR$tmanifesttFalseRtreadlineRtencode(Rtfpt first_line((sB/usr/local/lib/python2.7/site-packages/setuptools/command/sdist.pyt_manifest_is_not_generatedÙs cCsÀtjd|jƒt|jdƒ}xŠ|D]‚}trvy|jdƒ}Wqvtk rrtjd|ƒq,qvXn|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'RwsUTF-8s"%r not UTF-8 decodable -- skippingt#N( RtinfoRxRRtdecodetUnicodeDecodeErrorRZtstript startswithR6R7R(RRxtline((sB/usr/local/lib/python2.7/site-packages/setuptools/command/sdist.pyt read_manifestæs    N(sformats=Ns6formats for source distribution (comma-separated list)(s dist-dir=R0sFdirectory to put the source distribution archive(s) in [default: dist](iii(ii(iii(ii(iii(R'R(R)tNonet user_optionst negative_optRGt_sdist__read_template_hackRKt version_infothas_leaky_handleRJRnR9RpR~R†(((sB/usr/local/lib/python2.7/site-packages/setuptools/command/sdist.pyR.Ms*     5 (Rs README.rsts README.txt(Rtdistutils.utilRRERtdistutils.command.sdistR<R.RIR#treRKt setuptoolsRtsetuptools.compatRRRUR tobjectRR-tcompiletMt svn_finderR+(((sB/usr/local/lib/python2.7/site-packages/setuptools/command/sdist.pyts      (