ó ž‘Rec@s°ddlmZddljjZddlZddlZddlZddl Z ddl m Z ddl m Z ddlZeZdd„Zde ejfd „ƒYZdS( iÿÿÿÿ(tlogN(tsixi(tsdist_add_defaultstccs@x9tjdƒD](}x|jƒ|ƒD] }|Vq)WqWdS(s%Find all files under revision controlssetuptools.file_findersN(t pkg_resourcestiter_entry_pointstload(tdirnameteptitem((sŽ/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/sdist.pyt walk_revctrlstsdistcBs eZdZd ddddfd!gZiZd"Zd „Zd„Zd„Z d„Z e e j d„ƒƒZd„Zejd#kpÃd$ejko¢d%knpÃd&ejkoÁd'knZerÕeZnd„Zd„Zd„Zd„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]tREADMEs README.rsts README.txtcCs|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_commandtfilelisttappendtostpathtjoinRt check_readmetget_sub_commandstdistutils.commandtcommandt__all__tcheck_metadatatmake_distributiontgetattrt distributiont archive_files(tselftei_cmdtcmd_namet distutilsRtfiletdata((sŽ/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/sdist.pytrun*s   "     cCstjj|ƒ|jƒdS(N(torigR tinitialize_optionst_default_to_gztar(R#((sŽ/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/sdist.pyR+DscCs#tjdkrdSdg|_dS(Niiitbetaitgztar(iiiR-i(tsyst version_infotformats(R#((sŽ/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/sdist.pyR,IscCs'|jƒtjj|ƒWdQXdS(s% Workaround for #516 N(t_remove_os_linkR*R R(R#((sŽ/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/sdist.pyROs ccssddd„ƒY}ttd|ƒ}y t`Wntk rBnXz dVWd||k rnttd|ƒnXdS(sG In a context, remove and restore os.link if it exists tNoValuecBseZRS((t__name__t __module__(((sŽ/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/sdist.pyR3]stlinkN((R RR6t Exceptiontsetattr(R3torig_val((sŽ/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/sdist.pyR2Vs    cCs[ytjj|ƒWn@tk rVtjƒ\}}}|jjjdj ƒ‚nXdS(Nttemplate( R*R t read_templateR7R/texc_infottb_nextttb_frametf_localstclose(R#t_ttb((sŽ/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/sdist.pyt__read_template_hackks  iiiiiicCsœ|jjƒr˜|jdƒ}|jj|jƒƒ|jjs˜xR|jD]D\}}}}|jjg|D]}tj j ||ƒ^qlƒqJWq˜ndS(sgetting python filestbuild_pyN( R!thas_pure_modulesRRtextendtget_source_filestinclude_package_datat data_filesRRR(R#RDRAtsrc_dirt filenamestfilename((sŽ/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/sdist.pyt_add_defaults_python‚s  cCsOy*tjrtj|ƒn tƒjƒWntk rJtjdƒnXdS(Ns&data_files contains unexpected objects(RtPY2Rt_add_defaults_data_filestsupert TypeErrorRtwarn(R#((sŽ/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/sdist.pyROs   cCsKxD|jD]}tjj|ƒr dSq W|jddj|jƒƒdS(Ns,standard file not found: should have one of s, (tREADMESRRtexistsRRR(R#tf((sŽ/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/sdist.pyR™s cCs†tjj|||ƒtjj|dƒ}ttdƒrltjj|ƒrltj|ƒ|j d|ƒn|j dƒj |ƒdS(Ns setup.cfgR6R( R*R tmake_release_treeRRRthasattrRTtunlinkt copy_fileRtsave_version_info(R#tbase_dirtfilestdest((sŽ/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/sdist.pyRV£s ! cCsStjj|jƒstStj|jdƒ}|jƒ}WdQX|djƒkS(Ntrbs+# file GENERATED by distutils, do NOT edit ( RRtisfiletmanifesttFalsetiotopentreadlinetencode(R#tfpt first_line((sŽ/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/sdist.pyt_manifest_is_not_generated°s cCsÃtjd|jƒt|jdƒ}x|D]…}tjryy|jdƒ}Wqytk rutjd|ƒq,qyXn|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^sUTF-8s"%r not UTF-8 decodable -- skippingt#N(RtinfoR`RcRtPY3tdecodetUnicodeDecodeErrorRRtstript startswithRRR@(R#R`tline((sŽ/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/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](Rs README.rsts README.txt(iii(ii(iii(ii(iii(R4R5t__doc__tNonet user_optionst negative_optRSR)R+R,Rt staticmethodt contextlibtcontextmanagerR2t_sdist__read_template_hackR/R0thas_leaky_handleR;RMRORRVRhRq(((sŽ/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/sdist.pyR s8         (R&Rtdistutils.command.sdistRR R*RR/RbRwtsetuptools.externRt py36compatRRtlistt_default_revctrlR (((sŽ/builddir/build/BUILDROOT/alt-python27-setuptools-36.3.0-4.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/setuptools/command/sdist.pyts