ok

Mini Shell

Direktori : /usr/lib/python2.7/site-packages/setuptools/command/
Upload File :
Current File : //usr/lib/python2.7/site-packages/setuptools/command/sdist.pyo

�
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�x�tD]�\}}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	dks�dej	koidkns�dej	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.pytrun�s 
"


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			
			

Zerion Mini Shell 1.0