Your IP : 3.15.229.217


Current Path : /opt/alt/python33/lib/python3.3/site-packages/setuptools/command/__pycache__/
Upload File :
Current File : //opt/alt/python33/lib/python3.3/site-packages/setuptools/command/__pycache__/sdist.cpython-33.pyc

�
�Re� c@s�ddlZddlZddlZddlmZddlZddlmZddlm	Z	ddl
mZddlm
Z
dZd
dd�ZGd
d�de�Zd
dd�Zedejdej��e
jgZGdd�de�ZdS(iN(uglob(usdist(uconvert_path(ulog(u	svn_utilsuREADMEu
README.rstu
README.txtuccs@x9tjd�D](}x|j�|�D]}|Vq)WqWdS(u%Find all files under revision controlusetuptools.file_findersN(u
pkg_resourcesuiter_entry_pointsuload(udirnameuepuitem((u1/tmp/pip-k8wh6o-build/setuptools/command/sdist.pyuwalk_revctrlsuwalk_revctrlcBs>|EeZdZddd�Zdd�Zddd�ZdS(	u	re_findercCs%||_||_t|�|_dS(N(upatternupostprocuconvert_pathupath(uselfupathupatternupostproc((u1/tmp/pip-k8wh6o-build/setuptools/command/sdist.pyu__init__s		ure_finder.__init__ccs�t|d�}z|j�}Wd|j�XxU|jj|�D]A}|jd�}|jrp|j|�}ntj||�Vq@WdS(NurUi(	uopenureaducloseupatternufinditerugroupupostprocu	svn_utilsujoinpath(uselfudirnameufilenameufudataumatchupath((u1/tmp/pip-k8wh6o-build/setuptools/command/sdist.pyu_finders	ure_finder._finderuccs�tj||j�}tjj|�r�xh|j||�D]Q}tjj|�rZ|Vq:tjj|�r:x||�D]}|VqyWq:q:WndS(N(u	svn_utilsujoinpathupathuosuisfileu_finderuisdir(uselfudirnameupathuitem((u1/tmp/pip-k8wh6o-build/setuptools/command/sdist.pyu__call__+sure_finder.__call__N(u__name__u
__module__u__qualname__uNoneu__init__u_finderu__call__(u
__locals__((u1/tmp/pip-k8wh6o-build/setuptools/command/sdist.pyu	re_finders
u	re_finderccs1x*tD]"}x||�D]}|VqWqWdS(uPrimary svn_cvs entry pointN(ufinders(udirnameufinderuitem((u1/tmp/pip-k8wh6o-build/setuptools/command/sdist.pyu_default_revctrl7s
u_default_revctrluCVS/Entriesu
^\w?/([^/]+)/cBs�|EeZdZdZd ddddfd!gZiZdd�Zd
d�Ze	j
d"kp�d#e	j
koyd$knp�d%e	j
ko�d&knZer�eZndd�Z
dd�Zdd�Zdd�Zdd�ZdS('usdistu=Smart sdist that finds anything supported by revision controluformats=u6formats for source distribution (comma-separated list)u	keep-tempuku1keep the distribution tree around after creating uarchive file(s)u	dist-dir=uduFdirectory 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(Nuegg_infouSOURCES.txtiuchecku
dist_filesusdistu(urun_commanduget_finalized_commandufilelistuappenduosupathujoinuegg_infoucheck_readmeuget_sub_commandsudistutils.commanducommandu__all__ucheck_metadataumake_distributionugetattrudistributionu
archive_files(uselfuei_cmducmd_nameu	distutilsu
dist_filesufileudata((u1/tmp/pip-k8wh6o-build/setuptools/command/sdist.pyurunUs 
"


u	sdist.runc	CsDytj|�Wn,tj�djjjdj��YnXdS(Niutemplate(u_sdistu
read_templateusysuexc_infoutb_nextutb_frameuf_localsuclose(uself((u1/tmp/pip-k8wh6o-build/setuptools/command/sdist.pyu__read_template_hackns
!usdist.__read_template_hackiiiiiics`t|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�xC|jD]5\}	�}	}
|jj�fd	d
�|
D��qxWq�n|jj�r�|jd�}|jj|j��n|jj�r%|jd�}|jj|j��n|jj�r\|jd
�}
|jj|
j��ndS(Niiu,standard file not found: should have one of u, ustandard file '%s' not foundu
test/test*.pyu	setup.cfgubuild_pycs%g|]}tjj�|��qS((uosupathujoin(u.0ufilename(usrc_dir(u1/tmp/pip-k8wh6o-build/setuptools/command/sdist.pyu
<listcomp>�s	u&sdist.add_defaults.<locals>.<listcomp>u	build_extu
build_clibu
build_scripts(uREADMESudistributionuscript_nameu
isinstanceutupleuosupathuexistsufilelistuappenduwarnujoinulistufilteruisfileuglobuextenduhas_pure_modulesuget_finalized_commanduget_source_filesuinclude_package_datau
data_filesuhas_ext_modulesuhas_c_librariesuhas_scripts(uselfu	standardsufnualtsugot_ituoptionalupatternufilesubuild_pyu_u	filenamesu	build_extu
build_clibu
build_scripts((usrc_diru1/tmp/pip-k8wh6o-build/setuptools/command/sdist.pyuadd_defaults�sL

	
!usdist.add_defaultscCsEx>tD]}tjj|�rdSqW|jddjt��dS(Nu,standard file not found: should have one of u, (uREADMESuosupathuexistsuwarnujoin(uselfuf((u1/tmp/pip-k8wh6o-build/setuptools/command/sdist.pyucheck_readme�s

usdist.check_readmecCs�tj|||�tjj|d�}ttd�ritjj|�ritj|�|jd|�n|j	d�j
|�dS(Nu	setup.cfgulinkuegg_info(u_sdistumake_release_treeuosupathujoinuhasattruexistsuunlinku	copy_fileuget_finalized_commandusave_version_info(uselfubase_dirufilesudest((u1/tmp/pip-k8wh6o-build/setuptools/command/sdist.pyumake_release_tree�s!
usdist.make_release_treec
CsYtjj|j�sdSt|jd�}z|j�}Wd|j�X|dj�kS(NurbUu+# file GENERATED by distutils, do NOT edit
F(	uosupathuisfileumanifestuFalseuopenureadlineucloseuencode(uselfufpu
first_line((u1/tmp/pip-k8wh6o-build/setuptools/command/sdist.pyu_manifest_is_not_generated�su sdist._manifest_is_not_generatedcCs�tjd|j�t|jd�}x�|D]�}tjdkr�y|jd�}Wq�tk
r|tjd|�w,Yq�Xn|j	�}|j
d�s,|r�q,n|jj|�q,W|j
�dS(	u�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.
        ureading manifest file '%s'urbUiuUTF-8u"%r not UTF-8 decodable -- skippingu#N(i(uloguinfoumanifestuopenusysuversion_infoudecodeuUnicodeDecodeErroruwarnustripu
startswithufilelistuappenduclose(uselfumanifestuline((u1/tmp/pip-k8wh6o-build/setuptools/command/sdist.pyu
read_manifest�s

usdist.read_manifestN(uformats=Nu6formats for source distribution (comma-separated list)(u	dist-dir=uduFdirectory to put the source distribution archive(s) in [default: dist](iii(ii(iii(ii(iii(u__name__u
__module__u__qualname__u__doc__uNoneuuser_optionsunegative_opturunu_sdist__read_template_hackusysuversion_infouhas_leaky_handleu
read_templateuadd_defaultsucheck_readmeumake_release_treeu_manifest_is_not_generatedu
read_manifest(u
__locals__((u1/tmp/pip-k8wh6o-build/setuptools/command/sdist.pyusdistEs*		5	
usdist(uREADMEu
README.rstu
README.txt(uosureusysuglobu
pkg_resourcesudistutils.command.sdistusdistu_sdistudistutils.utiluconvert_pathu	distutilsulogu
setuptoolsu	svn_utilsuREADMESuwalk_revctrluobjectu	re_finderu_default_revctrlucompileuMu
svn_finderufinders(((u1/tmp/pip-k8wh6o-build/setuptools/command/sdist.pyu<module>s 

?>