mς &U²Ic@s°dZdZdkZdkZdkTdklZdkTdkl Z dk l Z dk l Z dklZd Zd „Zdadad.Zd/Zd+„Zdd,d-„ZdS(0s#distutils.core The only module that needs to be imported to use the Distutils; provides the 'setup' function (which is to be called from the setup script). Also indirectly provides the Distribution and Command classes, although they are really defined in distutils.dist and distutils.cmd. s0$Id: core.py 37828 2004-11-10 22:23:15Z loewis $N(t*(sDEBUG(sgrok_environment_error(s Distribution(sCommand(s Extensions°usage: %(script)s [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...] or: %(script)s --help [cmd1 cmd2 ...] or: %(script)s --help-commands or: %(script)s cmd --help cCstii|ƒ}ttƒS(N(tostpathtbasenamet script_nametscripttUSAGEtvars(RR((t+/data/zmath/lib/python2.4/distutils/core.pyt gen_usage$st distclassRt script_argstoptionstnametversiontauthort author_emailt maintainertmaintainer_emailturltlicenset descriptiontlong_descriptiontkeywordst platformst classifierst download_urltsourcest include_dirst define_macrost undef_macrost library_dirst librariestruntime_library_dirst extra_objectstextra_compile_argstextra_link_argst swig_optstexport_symbolstdependstlanguagecKsk|idƒ}|o |d=nt}|idƒp!tiiti dƒ|dRDR/RC((Rtsetup;sb !       truncCsΣ|d jotd|f‚n|ati}h}h}yVz?|tid<|dj o|tid)nt |||ƒWd|t_daXWnt j on ‚nXt djotd |‚nt S( s)Run a setup script in a somewhat controlled environment, and return the Distribution instance that drives things. This is useful if you need to find out the distribution meta-data (passed as keyword args from 'script' to 'setup()', or the contents of the config files or command-line. 'script_name' is a file that will be run with 'execfile()'; 'sys.argv[0]' will be replaced with 'script' for the duration of the call. 'script_args' is a list of strings; if supplied, 'sys.argv[1:]' will be replaced by 'script_args' for the duration of the call. 'stop_after' tells 'setup()' when to stop processing; possible values: init stop after the Distribution instance has been created and populated with the keyword arguments to 'setup()' config stop after config files have been parsed (and their data stored in the Distribution instance) commandline stop after the command-line ('sys.argv[1:]' or 'script_args') have been parsed (and the data stored in the Distribution) run [default] stop after all commands have been run (the same as if 'setup()' had been called in the usual way Returns the Distribution instance, which provides all information used to drive the Distutils. R)R*R+RLs"invalid value for 'stop_after': %riiNsZ'distutils.core.setup()' was never called -- perhaps '%s' is not a Distutils setup script?(sinitsconfigs commandlineRL(t stop_aftert ValueErrorR9R2R3t save_argvtgtlRR tNonetexecfileR8R4t RuntimeError(RR RMRPRORQ((Rt run_setup­s0       (s distclasss script_names script_argsR snamesversionRRRRRslicenseRRRRRR(snamessourcesRRRRR R!R"R#R$R%R&R'R((t__doc__t __revision__R2Rttypestdistutils.debugR;tdistutils.errorstdistutils.utilREtdistutils.distR0t distutils.cmdtCommandtdistutils.extensiont ExtensionRR RRR9R4tsetup_keywordstextension_keywordsRKRU(RURWRbR`RaR2RRER R^R;R0RRK((Rt?s"       r