%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /opt/plesk/python/2.7/lib64/python2.7/distutils/tests/
Upload File :
Create Path :
Current File : //opt/plesk/python/2.7/lib64/python2.7/distutils/tests/test_build_py.pyo

�
5}�ac@s�dZddlZddlZddlZddlZddlmZddlmZddl	m
Z
ddlmZddl
mZdejejejfd	��YZd
�Zedkr�ee��ndS(s%Tests for distutils.command.build_py.i����N(tbuild_py(tDistribution(tDistutilsFileError(tsupport(trun_unittesttBuildPyTestCasecBs,eZd�Zd�Zd�Zd�ZRS(cCs�|j�}ttjj|d�d�}z|jd�Wd|j�Xttjj|d�d�}z|jd�Wd|j�X|j�}tidgd6i|d6d6�}tjj|d	�|_t	j
d
dd|�|jd
<dg|_idgd6|_
i|d6|_t|�}d|_|j�|j|j
|j
�|j�|jt|j��d�tjj|d�}tj|�}|jd|�|jd|�tjr�|jd|�n|jd|�dS(Ns__init__.pytws# Pretend this is a package.s
README.txtsInfo about this packagetpkgtpackagestpackage_dirssetup.pytforceit	build_libtbuildiis__init__.pyc(tmkdtemptopentostpathtjointwritetcloseRtscript_nameRtDummyCommandtcommand_objRtpackage_dataR	Rtcompiletensure_finalizedtassertEqualtruntlentget_outputstlistdirtassertIntsystdont_write_bytecodetassertNotIn(tselftsourcestftdestinationtdisttcmdtpkgdesttfiles((sF/opt/plesk/python/2.7/lib64/python2.7/distutils/tests/test_build_py.pyttest_package_datas@		

	cCsWtj�}|j�}ttjj|d�d�j�tjj|d�}tj|�ttjj|d�d�j�tj|�t	j
}tj�t	_
z�tidgd6idd6d6id	gd6d
6�}tjj|d�|_
dg|_|j�y|j�Wntk
r7|jd
�nXWdtj|�|t	_
XdS(Ns__init__.pyRtdocttestfileRRtR	sdoc/*Rssetup.pyRs/failed package_data test when package_dir is ''(RtgetcwdR
RRRRtmkdirtchdirR tstdouttStringIORRtscript_argstparse_command_linetrun_commandsRtfail(R#tcwdR$ttestdirt
old_stdoutR'((sF/opt/plesk/python/2.7/lib64/python2.7/distutils/tests/test_build_py.pyttest_empty_package_dirDs,"
"
	


cCsE|j�}tjj|d�}tj|�ttjj|d�d�j�tjj|d�}tj|�ttjj|d�d�j�tjtjj|d��tj|�tidgd6idgd6d	6�}tjj|d
�|_	dg|_
|j�y|j�Wnt
k
r@|jd�nXd
S(sR
        A directory in package_data should not be added to the filelist.
        Rs__init__.pyRR,R-totherdirRsdoc/*Rssetup.pyRs0failed package_data when data dir includes a dirN(R
RRRR0RRR1RRR4R5R6RR7(R#R$tpkg_dirtdocdirR'((sF/opt/plesk/python/2.7/lib64/python2.7/distutils/tests/test_build_py.pyttest_dir_in_package_datafs$
"
"


cCs|j�\}}t|�}d|_d|_tj}tt_z|jg�Wd|t_X|jd|j	dd�dS(Nisbyte-compiling is disabledi(
tcreate_distRRtoptimizeR R!tTruetbyte_compileRtlogs(R#R=R'R(told_dont_write_bytecode((sF/opt/plesk/python/2.7/lib64/python2.7/distutils/tests/test_build_py.pyttest_dont_write_bytecode�s				
(t__name__t
__module__R+R;R?RF(((sF/opt/plesk/python/2.7/lib64/python2.7/distutils/tests/test_build_py.pyRs	0	"	cCs
tjt�S(N(tunittestt	makeSuiteR(((sF/opt/plesk/python/2.7/lib64/python2.7/distutils/tests/test_build_py.pyt
test_suite�st__main__(t__doc__RR R3RItdistutils.command.build_pyRtdistutils.coreRtdistutils.errorsRtdistutils.testsRttest.test_supportRtTempdirManagertLoggingSilencertTestCaseRRKRG(((sF/opt/plesk/python/2.7/lib64/python2.7/distutils/tests/test_build_py.pyt<module>s	�	

Zerion Mini Shell 1.0