[pypy-commit] pypy default: fix for missing module

mattip noreply at buildbot.pypy.org
Thu May 23 18:44:15 CEST 2013


Author: mattip <matti.picus at gmail.com>
Branch: 
Changeset: r64517:6349ccab6c2c
Date: 2013-05-23 19:41 +0300
http://bitbucket.org/pypy/pypy/changeset/6349ccab6c2c/

Log:	fix for missing module

diff --git a/pypy/config/pypyoption.py b/pypy/config/pypyoption.py
--- a/pypy/config/pypyoption.py
+++ b/pypy/config/pypyoption.py
@@ -65,7 +65,8 @@
     del working_modules["termios"]
     del working_modules["_minimal_curses"]
 
-    del working_modules["cppyy"]  # not tested on win32
+    if "cppyy" in working_modules:
+        del working_modules["cppyy"]  # not tested on win32
 
     # The _locale module is needed by site.py on Windows
     default_modules["_locale"] = None
@@ -78,7 +79,8 @@
     del working_modules["_minimal_curses"]
     del working_modules["termios"]
     del working_modules["_multiprocessing"]   # depends on rctime
-    del working_modules["cppyy"]  # depends on ctypes
+    if "cppyy" in working_modules:
+        del working_modules["cppyy"]  # depends on ctypes
 
 
 module_dependencies = {


More information about the pypy-commit mailing list