[pypy-svn] r33129 - pypy/branch/even-more-config2/pypy/config
cfbolz at codespeak.net
cfbolz at codespeak.net
Tue Oct 10 19:00:54 CEST 2006
Author: cfbolz
Date: Tue Oct 10 19:00:53 2006
New Revision: 33129
Modified:
pypy/branch/even-more-config2/pypy/config/pypyoption.py
Log:
new syntax for specifying which modules to use
Modified: pypy/branch/even-more-config2/pypy/config/pypyoption.py
==============================================================================
--- pypy/branch/even-more-config2/pypy/config/pypyoption.py (original)
+++ pypy/branch/even-more-config2/pypy/config/pypyoption.py Tue Oct 10 19:00:53 2006
@@ -47,8 +47,8 @@
OptionDescription("usemodules", "Which Modules should be used", [
BoolOption(modname, "use module %s" % (modname, ),
default=modname in default_modules,
- cmdline=None)
- for modname in all_modules], cmdline="--usemodules"),
+ cmdline="--withmod-%s" % (modname, ))
+ for modname in all_modules]),
BoolOption("geninterp", "specify whether geninterp should be used"),
@@ -167,14 +167,14 @@
"Remove mallocs in a clever way", default=False),
IntOption("inline_threshold", "Threshold when to inline functions",
default=1, cmdline=None),
- ]),
- ])
+ ]),
+ ]),
])
if __name__ == '__main__':
config = Config(pypy_optiondescription)
print config.getpaths()
- parser = to_optparse(config)
+ parser = to_optparse(config) #, useoptions=["translation.*"])
option, args = parser.parse_args()
print config
More information about the Pypy-commit
mailing list