%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_bdist_rpm.pyc

�
5}�ac@s6dZddlZddlZddlZddlZddlZddlmZyddlZWne	k
r{dZnXddlmZddl
mZddlmZddlmZddlmZdd	lmZd
Zdejejejejfd��YZd
�Zedkr2ee��ndS(s&Tests for distutils.command.bdist_rpm.i����N(trun_unittest(tDistribution(t	bdist_rpm(tsupport(tfind_executable(tspawn(tDistutilsExecErrors�from distutils.core import setup
import foo

setup(name='foo', version='0.1', py_modules=['foo'],
      url='xxx', author='xxx', author_email='xxx')

tBuildRpmTestCasecBseZd�Zd�Zejejjd�d�eje	d�ej
ed�dkd�ej
ed�dkd�d	�����Z
ejejjd�d�eje	d�ej
ed�dkd�ej
ed�dkd�d
�����ZRS(cCs<tt|�j�tj�|_tjtjf|_dS(N(	tsuperRtsetUptostgetcwdtold_locationtsystargvtold_sys_argv(tself((sG/opt/plesk/python/2.7/lib64/python2.7/distutils/tests/test_bdist_rpm.pyR	%scCsHtj|j�|jdt_|jdtj(tt|�j�dS(Nii(	R
tchdirRRR
RRRttearDown(R((sG/opt/plesk/python/2.7/lib64/python2.7/distutils/tests/test_bdist_rpm.pyR*stlinuxs,spurious sdtout/stderr output under Mac OS Xs
requires zlibtrpmsthe rpm command is not foundtrpmbuilds!the rpmbuild command is not foundcCsx|j�}|tjd<tjj|d�}tj|�|j|dft�|j|dfd�|j|dfd�|j|dfd	�tidd
6dd6dgd
6dd6dd6dd6�}d|_	tj
|�dgt_t
|�}t|_d|_|j�|j�tjtjj|d��}|jd|�|jd|j�|jd|j�dS(NtHOMEtfoossetup.pysfoo.pyt#sMANIFEST.insinclude foo.pytREADMEttnames0.1tversiont
py_modulestxxxturltauthortauthor_emailitdistsfoo-0.1-1.noarch.rpmRtanysdist/foo-0.1-1.src.rpmsdist/foo-0.1-1.noarch.rpm(RR#sdist/foo-0.1-1.src.rpm(RR#sdist/foo-0.1-1.noarch.rpm(tmkdtempR
tenvirontpathtjointmkdirt
write_filetSETUP_PYRtscript_nameRR
RRtTruet
fix_pythontquiettensure_finalizedtruntlistdirtassertInt
dist_files(Rttmp_dirtpkg_dirR"tcmdtdist_created((sG/opt/plesk/python/2.7/lib64/python2.7/distutils/tests/test_bdist_rpm.pyt
test_quiet2s0	



	
		

cCs�|j�}|tjd<tjj|d�}tj|�|j|dft�|j|dfd�|j|dfd�|j|dfd	�tidd
6dd6dgd
6dd6dd6dd6�}d|_	tj
|�dgt_t
|�}t|_d|_|j�|j�tjtjj|d��}|jd|�|jd|j�|jd|j�tjtjj|dd��dS(NRRssetup.pysfoo.pyRsMANIFEST.insinclude foo.pyRRRs0.1RRRRR R!iR"sfoo-0.1-1.noarch.rpmRR#sdist/foo-0.1-1.src.rpmsdist/foo-0.1-1.noarch.rpm(RR#sdist/foo-0.1-1.src.rpm(RR#sdist/foo-0.1-1.noarch.rpm(R$R
R%R&R'R(R)R*RR+RR
RRR,R-R.R/R0R1R2R3tremove(RR4R5R"R6R7((sG/opt/plesk/python/2.7/lib64/python2.7/distutils/tests/test_bdist_rpm.pyttest_no_optimize_flag]s2




	
		

N(t__name__t
__module__R	Rtunittestt
skipUnlessR
tplatformt
startswithtzlibtskipIfRtNoneR8R:(((sG/opt/plesk/python/2.7/lib64/python2.7/distutils/tests/test_bdist_rpm.pyR s 		%cCs
tjt�S(N(R=t	makeSuiteR(((sG/opt/plesk/python/2.7/lib64/python2.7/distutils/tests/test_bdist_rpm.pyt
test_suite�st__main__(t__doc__R=R
R
ttempfiletshutilttest.test_supportRRAtImportErrorRCtdistutils.coreRtdistutils.command.bdist_rpmRtdistutils.testsRtdistutils.spawnRt	distutilsRtdistutils.errorsRR*tTempdirManagertEnvironGuardtLoggingSilencertTestCaseRRER;(((sG/opt/plesk/python/2.7/lib64/python2.7/distutils/tests/test_bdist_rpm.pyt<module>s0

		e	

Zerion Mini Shell 1.0