[pypy-svn] r32729 - pypy/branch/config-in-more-places/pypy/config

cfbolz at codespeak.net cfbolz at codespeak.net
Fri Sep 29 11:09:05 CEST 2006


Author: cfbolz
Date: Fri Sep 29 11:09:04 2006
New Revision: 32729

Modified:
   pypy/branch/config-in-more-places/pypy/config/pypyoption.py
Log:
add commandline arguments similar to the previous ones to the PyPy options.


Modified: pypy/branch/config-in-more-places/pypy/config/pypyoption.py
==============================================================================
--- pypy/branch/config-in-more-places/pypy/config/pypyoption.py	(original)
+++ pypy/branch/config-in-more-places/pypy/config/pypyoption.py	Fri Sep 29 11:09:04 2006
@@ -17,13 +17,19 @@
     OptionDescription("objspace", "Object Space Option", [
         ChoiceOption("name", "Object Space name",
                      ["std", "flow", "logic", "thunk", "cpy"], "std",
+                     requires = {
+                         "thunk": [("objspace.geninterp", False)],
+                         "logic": [("objspace.geninterp", False)],
+                     },
                      cmdline='--objspace -o'),
 
         ChoiceOption("parser", "parser",
-                     ["pypy", "cpython"], "pypy"),
+                     ["pypy", "cpython"], "pypy",
+                     cmdline='--parser'),
 
         ChoiceOption("compiler", "compiler",
-                     ["cpython", "ast"], "ast"),
+                     ["cpython", "ast"], "ast",
+                     cmdline='--compiler'),
 
         BoolOption("nofaking", "disallow faking in the object space",
                    default=False,
@@ -31,10 +37,12 @@
                        ("objspace.uselibfile", True),
                        ("objspace.usemodules.posix", True),
                        ("objspace.usemodules.time", True),
-                       ("objspace.usemodules.errno", True)]),
+                       ("objspace.usemodules.errno", True)],
+                   cmdline='--nofaking'),
 
         BoolOption("uselibfile", "use the applevel file implementation",
-                   default=False),
+                   default=False,
+                   cmdline='--uselibfile'),
 
         OptionDescription("usemodules", "Which Modules should be used", [
             BoolOption(modname, "use module %s" % (modname, ),



More information about the Pypy-commit mailing list