[pypy-svn] r34422 - pypy/dist/pypy/config

afayolle at codespeak.net afayolle at codespeak.net
Thu Nov 9 17:22:10 CET 2006


Author: afayolle
Date: Thu Nov  9 17:22:09 2006
New Revision: 34422

Modified:
   pypy/dist/pypy/config/pypyoption.py
Log:
First shot at module dependencies. 

Testing in progress to check the interdependencies, in order to fill the
module_dependencies dictionary. 


Modified: pypy/dist/pypy/config/pypyoption.py
==============================================================================
--- pypy/dist/pypy/config/pypyoption.py	(original)
+++ pypy/dist/pypy/config/pypyoption.py	Thu Nov  9 17:22:09 2006
@@ -12,6 +12,10 @@
      "_codecs", "gc", "_weakref", "array", "marshal", "errno",
      "math", "_sre", "_pickle_support", "sys", "exceptions", "__builtins__",
      "recparser", "symbol", "_random", "_file"])
+
+module_dependencies = { 'rctime': [("objspace.usemodules.select", True),],
+                        }
+
                               
 pypy_optiondescription = OptionDescription("pypy", "All PyPy Options", [
     OptionDescription("objspace", "Object Space Option", [
@@ -42,7 +46,8 @@
         OptionDescription("usemodules", "Which Modules should be used", [
             BoolOption(modname, "use module %s" % (modname, ),
                        default=modname in default_modules,
-                       cmdline="--withmod-%s" % (modname, ))
+                       cmdline="--withmod-%s" % (modname, ),
+                       requires= module_dependencies.get(modname, []))
             for modname in all_modules]),
 
         BoolOption("geninterp", "specify whether geninterp should be used",



More information about the Pypy-commit mailing list