[pypy-svn] r65735 - pypy/trunk/pypy/rlib

fijal at codespeak.net fijal at codespeak.net
Wed Jun 10 23:07:03 CEST 2009

Author: fijal
Date: Wed Jun 10 23:07:01 2009
New Revision: 65735

Report error early (at the import time) if C library cannot be found.
Otherwise it explodes with pretty obscure annotation error. We can fix
the annotation error, but we need c library anyway.

Modified: pypy/trunk/pypy/rlib/libffi.py
--- pypy/trunk/pypy/rlib/libffi.py	(original)
+++ pypy/trunk/pypy/rlib/libffi.py	Wed Jun 10 23:07:01 2009
@@ -255,6 +255,8 @@
         pass # No check
     libc_name = ctypes.util.find_library('c')
+    assert libc_name is not None, "Cannot find C library, ctypes.util.find_library('c') returned None"
     def get_libc_name():
         return libc_name

More information about the Pypy-commit mailing list