Author: Manuel Jacob
Branch: llvm-translation-backend
Changeset: r71671:2a72a631b974
Date: 2014-05-22 08:41 +0200
http://bitbucket.org/pypy/pypy/changeset/2a72a631b974/

Log:    Disable cpyext (and cppyy, which depends on it) when translating
        with the llvm backend.

diff --git a/pypy/config/pypyoption.py b/pypy/config/pypyoption.py
--- a/pypy/config/pypyoption.py
+++ b/pypy/config/pypyoption.py
@@ -335,6 +335,12 @@
     # may not be present in config.objspace.usemodules at all
     modules = [name for name in modules if name not in essential_modules]
 
+    # the llvm translation backend currently doesn't support cpyext
+    # cppyy depends in cpyext
+    if config.translation.backend == 'llvm':
+        modules.remove('cpyext')
+        modules.remove('cppyy')
+
     config.objspace.usemodules.suggest(**dict.fromkeys(modules, True))
 
 def enable_translationmodules(config):
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to