Plan 9 from Bell Labs’s /usr/web/sources/contrib/jas/root/sys/lib/python2.7/distutils/tests/test_bdist_dumb.pyc

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


��Qc@s�dZddlZddlZddlZddlZddlmZyddlZWnek
rodZnXddl
mZddlm
Z
ddlmZdZdejejejejfd	��YZd
�Zedkr�e��ndS(s'Tests for distutils.command.bdist_dumb.i�N(trun_unittest(tDistribution(t
bdist_dumb(tsupports�from distutils.core import setup
import foo

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

tBuildDumbTestCasecBs>eZd�Zd�Zejed�d��Zd�ZRS(cCs<tt|�j�tj�|_tjtjf|_dS(N(	tsuperRtsetUptostgetcwdtold_locationtsystargvtold_sys_argv(tself((s5/sys/lib/python2.7/distutils/tests/test_bdist_dumb.pyR"scCsHtj|j�|jdt_|jdtj(tt|�j�dS(Nii(	RtchdirR	RR
RRRttearDown(R
((s5/sys/lib/python2.7/distutils/tests/test_bdist_dumb.pyR'ss
requires zlibc
Cs|j�}tjj|d�}tj|�|j|dft�|j|dfd�|j|dfd�|j|dfd�tidd	6d
d6dgd6d
d6d
d6d
d6�}d|_tj	|�dgt
_t|�}d|_
|j�|j�tjtjj|d��}d|j�|jf}tjdkre|jdd�}n|j||g�tjtjjd|��}z|j�}Wd|j�Xtd�|D��}dt
jd dg}	t
js�jd�n|j|t|	��dS(Ntfoossetup.pysfoo.pyt#sMANIFEST.insinclude foo.pytREADMEttnames0.1tversiont
py_modulestxxxturltauthortauthor_emailtziptdists	%s.%s.ziptos2t:t-css!|]}tjj|�VqdS(N(Rtpathtbasename(t.0tfn((s5/sys/lib/python2.7/distutils/tests/test_bdist_dumb.pys	<genexpr>Yssfoo-0.1-py%s.%s.egg-infoisfoo.pyc(tmkdtempRR tjointmkdirt
write_filetSETUP_PYRtscript_nameRR
RRtformattensure_finalizedtruntlistdirtget_fullnamet	plat_nameRtreplacetassertEqualtzipfiletZipFiletnamelisttclosetsortedtversion_infotdont_write_bytecodetappend(
R
ttmp_dirtpkg_dirRtcmdtdist_createdtbasetfptcontentstwanted((s5/sys/lib/python2.7/distutils/tests/test_bdist_dumb.pyttest_simple_built-s@


	
	

	cCs�|j�\}}tj|�t|�}|j|jd�|j�|jd�j	}|j|jtj
j|d��|jtj
}|j|j|�dS(Ntbdisttdumb(tcreate_distRRRR1t	bdist_dirtNonetfinalize_optionstget_finalized_commandt
bdist_baseR R%tdefault_formatRR*(R
R;RR<R>tdefault((s5/sys/lib/python2.7/distutils/tests/test_bdist_dumb.pyttest_finalize_options_s

"(	t__name__t
__module__RRtunittestt
skipUnlesstzlibRBRM(((s5/sys/lib/python2.7/distutils/tests/test_bdist_dumb.pyRs		2cCs
tjt�S(N(RPt	makeSuiteR(((s5/sys/lib/python2.7/distutils/tests/test_bdist_dumb.pyt
test_suitenst__main__(t__doc__RR
R2RPttest.test_supportRRRtImportErrorRGtdistutils.coreRtdistutils.command.bdist_dumbRtdistutils.testsRR(tTempdirManagertLoggingSilencertEnvironGuardtTestCaseRRTRN(((s5/sys/lib/python2.7/distutils/tests/test_bdist_dumb.pyt<module>s(

		N	

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.