Viewing File: /usr/lib/python2.7/site-packages/setuptools/command/sdist.pyc

ó
b-äQc@siddlmZddlmZddlmZddlmZddlZddl	Z	ddl
Z
ddlZddlmZd#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&lt;t<s&gt;t>s&quot;t"s&apos;t's&amp;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Ätjdt
jj|ƒƒdSxhttj
|jdƒdƒD]G}|sät|ƒd	kr|d
dkrqänt||dƒVqäWdS(NRs<?xmliiÿÿÿÿiis&unrecognized .svn/entries format in %ss

iitdelete(RRRt
startswithtentries_patternRRRRR8R:RtwarnR RtabspathtmaptstrR6R7(RRRRRtsvnvertrecord((s</usr/lib/python2.7/site-packages/setuptools/command/sdist.pytentries_finderXs$
$&)sCVS/Entriess
^\w?/([^/]+)/s.svn/entriess.svn/dir-propss.svn/dir-prop-baseRcBsÅeZdZdddddfdgZiZd
„Zd„Zej	dksdej	koidknsdej	koˆdknr–eZ
nd„Zd„Zd„Z
d„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|jjkr£|j
ƒn|jƒt|jdgƒ}x<|jD]1}dd|f}||krÌ|j|ƒqÌqÌWdS(Ntegg_infosSOURCES.txtiÿÿÿÿtcheckt
dist_filesRR$(trun_commandtget_finalized_commandtfilelisttappendR RR!RMtcheck_readmetget_sub_commandstdistutils.commandtcommandt__all__tcheck_metadatatmake_distributiontgetattrtdistributiont
archive_files(tselftei_cmdtcmd_namet	distutilsROtfileR((s</usr/lib/python2.7/site-packages/setuptools/command/sdist.pytruns 
"


cCsCytj|ƒWn+tjƒdjjjdjƒ‚nXdS(Nittemplate(t_sdistt
read_templatetsystexc_infottb_nextttb_frametf_localsR(R^((s</usr/lib/python2.7/site-packages/setuptools/command/sdist.pyt__read_template_hack©s
!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\tscript_namet
isinstancettupleR RtexistsRRRSRDR!tlisttfilterR,Rtextendthas_pure_modulesRQtget_source_filestinclude_package_datat
data_filesthas_ext_modulesthas_c_librariesthas_scripts(R^t	standardstfntaltstgot_ittoptionalRtfilesRmt_tsrc_dirt	filenamesRRnRoRp((s</usr/lib/python2.7/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, (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	scCsÉtjd|jƒt|jdƒ}x“|D]‹}tjdkry|jdƒ}Wqtk
r{tjd|ƒq,qXn|j	ƒ}|j
dƒs,|r§q,n|jj|ƒ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&lt;R(s&gt;R(s&quot;R(s&apos;R(s&amp;R	(tdistutils.command.sdistRRetdistutils.utilRRaRRR treRgR%RqR
RR¢RRR*R.R@tcompiletIRCRJtMR+(((s</usr/lib/python2.7/site-packages/setuptools/command/sdist.pyt<module>s,0			
			
Back to Directory File Manager