mς &U²Ic@s°dZdkZdkZdkZdkZdkZdkZdkZdk l Z dei i fd„ƒYZ deiifd„ƒYZdeifd„ƒYZd „ZdS( sTests for distutils.dist.N(sTESTFNt test_distcBs tZdZdgZd„ZRS(s#Sample distutils extension command.ssample-option=tSs help textcCs d|_dS(N(tNonetselft sample_option(R((t6/data/zmath/lib/python2.4/distutils/tests/test_dist.pytinitialize_optionss(ssample-option=Rs help text(t__name__t __module__t__doc__t user_optionsR(((RRs  tTestDistributioncBstZdZd„ZRS(s²Distribution subclasses that avoids the default search for configuration files. The ._config_files attribute must be set before .parse_config_files() is called. cCs|iS(N(Rt _config_files(R((Rtfind_config_files!s(RRR R (((RR s tDistributionTestCasecBsAtZd„Zd„Zfd„Zd„Zd„Zd„ZRS(NcCsti|_tid3dS(Ni(tsystargvR(R((RtsetUp's cCs|iti(dS(N(RRR(R((RttearDown+scCs*tƒ}||_|iƒ|iƒ|S(N(R tdt configfilesR tparse_config_filestparse_command_line(RRR((Rtcreate_distribution.s     cCs9tiidƒ|iƒ}|i|iƒdgƒdS(Ntbuildsdistutils.command(RRtappendRRRt assertEqualtget_command_packages(RR((Rt!test_command_packages_unspecified5s cCsƒtiiddddgƒ|iƒ}|i|iƒdddgƒ|idƒ}|i t |t ƒƒ|i|i dƒdS( Ns--command-packagessfoo.bar,distutils.testsRs -Ssometextsdistutils.commandsfoo.barsdistutils.teststsometext(RRtextendRRRRRtget_command_objtcmdtassert_t isinstanceRR(RRR ((Rttest_command_packages_cmdline:s cCs tiidƒttdƒ}zΨ|dIJ|dIJ|iƒ|itgƒ}|i |i ƒdddgƒdd dgtid )|itgƒ}|i |i ƒdd gƒdd dgtid )|itgƒ}|i |i ƒdgƒWdt i tƒXdS( NRtws[global]s!command_packages = foo.bar, splatsdistutils.commandsfoo.bartsplats--command-packagestsporkit(RRRtopentTESTFNtftcloseRRRRRtostunlink(RRR*((Rt test_command_packages_configfileHs$    (RRRRRRR#R.(((RR%s      cCs titƒS(N(tunittestt makeSuiteR(((Rt test_suitecs(R t distutils.cmdt distutilstdistutils.distR,tshutilRttempfileR/ttest.test_supportR)R tCommandRtdistt DistributionR tTestCaseRR1( R3R6R/RR R1RRR5R,R)((Rt?s          >