ó N3{Yc@sõddlZddlZddlZddlmZddlZddlmZddlm Z ddl m Z ddl m Z dZd d „Zd efd „ƒYZd d„Zedejdejƒƒe jgZdefd„ƒYZdS(iÿÿÿÿN(tglob(tsdist(t convert_path(tlog(t svn_utilstREADMEs 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((sI/opt/alt/python34/lib/python3.4/site-packages/setuptools/command/sdist.pyt walk_revctrlst re_findercBs)eZdd„Zd„Zdd„ZRS(cCs%||_||_t|ƒ|_dS(N(tpatterntpostprocRtpath(tselfRRR((sI/opt/alt/python34/lib/python3.4/site-packages/setuptools/command/sdist.pyt__init__s  ccs‰t|dƒ}z|jƒ}Wd|jƒXxU|jj|ƒD]A}|jdƒ}|jrp|j|ƒ}ntj||ƒVq@WdS(NtrUi( topentreadtcloseRtfinditertgroupRRtjoinpath(RR tfilenametftdatatmatchR((sI/opt/alt/python34/lib/python3.4/site-packages/setuptools/command/sdist.pyt_finders  Rccs–tj||jƒ}tjj|ƒr’xh|j||ƒD]Q}tjj|ƒrZ|Vq:tjj|ƒr:x||ƒD] }|VqyWq:q:WndS(N(RRRtostisfileRtisdir(RR RR ((sI/opt/alt/python34/lib/python3.4/site-packages/setuptools/command/sdist.pyt__call__+sN(t__name__t __module__tNoneRRR#(((sI/opt/alt/python34/lib/python3.4/site-packages/setuptools/command/sdist.pyRs  ccs1x*tD]"}x||ƒD] }|VqWqWdS(sPrimary svn_cvs entry pointN(tfinders(R tfinderR ((sI/opt/alt/python34/lib/python3.4/site-packages/setuptools/command/sdist.pyt_default_revctrl7s s CVS/Entriess ^\w?/([^/]+)/RcBsË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_filesRR(t run_commandtget_finalized_commandtfilelisttappendR RtjoinR,t check_readmetget_sub_commandstdistutils.commandtcommandt__all__tcheck_metadatatmake_distributiontgetattrt distributiont archive_files(Rtei_cmdtcmd_namet distutilsR.tfileR((sI/opt/alt/python34/lib/python3.4/site-packages/setuptools/command/sdist.pytrunUs   "     cCsCytj|ƒWn+tjƒdjjjdjƒ‚nXdS(Nittemplate(t_sdistt read_templatetsystexc_infottb_nextttb_frametf_localsR(R((sI/opt/alt/python34/lib/python3.4/site-packages/setuptools/command/sdist.pyt__read_template_hackns !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(tREADMESR<t script_namet isinstancettupleR RtexistsR1R2twarnR3tlisttfilterR!Rtextendthas_pure_modulesR0tget_source_filestinclude_package_datat data_filesthas_ext_modulesthas_c_librariest has_scripts(Rt standardstfntaltstgot_ittoptionalRtfilesRLt_tsrc_dirt filenamesRRMRNRO((sI/opt/alt/python34/lib/python3.4/site-packages/setuptools/command/sdist.pyt add_defaultsƒsL     !  0cCsEx>tD]}tjj|ƒrdSqW|jddjtƒƒdS(Ns,standard file not found: should have one of s, (RPR RRTRUR3(RR((sI/opt/alt/python34/lib/python3.4/site-packages/setuptools/command/sdist.pyR4¸s  cCsƒtj|||ƒtjj|dƒ}ttdƒritjj|ƒritj|ƒ|jd|ƒn|j dƒj |ƒdS(Ns setup.cfgtlinkR,( RDtmake_release_treeR RR3thasattrRTtunlinkt copy_fileR0tsave_version_info(Rtbase_dirRetdest((sI/opt/alt/python34/lib/python3.4/site-packages/setuptools/command/sdist.pyRkÁ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((sI/opt/alt/python34/lib/python3.4/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'RrisUTF-8s"%r not UTF-8 decodable -- skippingt#N(i(RtinfoRsRRFt version_infotdecodetUnicodeDecodeErrorRUtstript startswithR1R2R(RRstline((sI/opt/alt/python34/lib/python3.4/site-packages/setuptools/command/sdist.pyt read_manifestÚs    N(sformats=Ns6formats for source distribution (comma-separated list)(s dist-dir=R+sFdirectory to put the source distribution archive(s) in [default: dist](iii(ii(iii(ii(iii(R$R%t__doc__R&t user_optionst negative_optRBt_sdist__read_template_hackRFR|thas_leaky_handleRERiR4RkRyR‚(((sI/opt/alt/python34/lib/python3.4/site-packages/setuptools/command/sdist.pyREs*     5 (Rs README.rsts README.txt(R treRFRRtdistutils.command.sdistRRDtdistutils.utilRR@Rt setuptoolsRRPR tobjectRR)tcompiletMt svn_finderR'(((sI/opt/alt/python34/lib/python3.4/site-packages/setuptools/command/sdist.pyts