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

arigo at codespeak.net arigo at codespeak.net
Thu Feb 14 10:07:50 CET 2008


Author: arigo
Date: Thu Feb 14 10:07:50 2008
New Revision: 51479

Modified:
   pypy/dist/pypy/config/pypyoption.py
Log:
Document and make this module dependency more precise.


Modified: pypy/dist/pypy/config/pypyoption.py
==============================================================================
--- pypy/dist/pypy/config/pypyoption.py	(original)
+++ pypy/dist/pypy/config/pypyoption.py	Thu Feb 14 10:07:50 2008
@@ -35,7 +35,10 @@
     del working_modules["termios"]
 
 
-module_dependencies = {
+module_dependencies = {}
+module_suggests = {    # the reason you want _rawffi is for ctypes, which
+                       # itself needs the interp-level struct module
+                       # because 'P' is missing from the app-level one
                        '_rawffi': [("objspace.usemodules.struct", True)],
                        }
 if os.name == "posix":
@@ -85,6 +88,7 @@
                    default=modname in default_modules,
                    cmdline="--withmod-%s" % (modname, ),
                    requires=module_dependencies.get(modname, []),
+                   suggests=module_suggests.get(modname, []),
                    negation=modname not in essential_modules)
         for modname in all_modules]),
 



More information about the Pypy-commit mailing list