[pypy-svn] r32700 - pypy/branch/config-in-more-places/pypy/translator/goal

cfbolz at codespeak.net cfbolz at codespeak.net
Thu Sep 28 17:56:17 CEST 2006


Author: cfbolz
Date: Thu Sep 28 17:56:15 2006
New Revision: 32700

Modified:
   pypy/branch/config-in-more-places/pypy/translator/goal/targetpypystandalone.py
   pypy/branch/config-in-more-places/pypy/translator/goal/translate.py
Log:
various typos. also print the config.


Modified: pypy/branch/config-in-more-places/pypy/translator/goal/targetpypystandalone.py
==============================================================================
--- pypy/branch/config-in-more-places/pypy/translator/goal/targetpypystandalone.py	(original)
+++ pypy/branch/config-in-more-places/pypy/translator/goal/targetpypystandalone.py	Thu Sep 28 17:56:15 2006
@@ -108,12 +108,13 @@
     config = Config(pypy_optiondescription)
     opt_parser = py.compat.optparse.OptionParser(usage="target PyPy standalone",
                                                  add_help_option=False)
-    to_optparse(config, parser=parser)
+    to_optparse(config, parser=opt_parser)
 
-    translate.log_options(tgt_options, "target PyPy options in effect")
 
-    opt_parser().parse_args(args)
+    tgt_options, _ = opt_parser.parse_args(args)
 
+    translate.log_options(tgt_options, "target PyPy options in effect")
+    translate.log_config(config, "PyPy config object")
     # expose the following variables to ease debugging
     global space, entry_point
 

Modified: pypy/branch/config-in-more-places/pypy/translator/goal/translate.py
==============================================================================
--- pypy/branch/config-in-more-places/pypy/translator/goal/translate.py	(original)
+++ pypy/branch/config-in-more-places/pypy/translator/goal/translate.py	Thu Sep 28 17:56:15 2006
@@ -267,6 +267,10 @@
         optvalue = getattr(options, name)
         log('%25s: %s' %(name, optvalue))
    
+def log_config(config, header="config used"):
+    log('%s:' % header)
+    log(str(config))
+
 def main():
     targetspec_dic, options, args = parse_options_and_load_target()
 



More information about the Pypy-commit mailing list