[pypy-svn] r61422 - pypy/trunk/pypy/lib

afa at codespeak.net afa at codespeak.net
Wed Jan 28 13:40:16 CET 2009


Author: afa
Date: Wed Jan 28 13:40:13 2009
New Revision: 61422

Modified:
   pypy/trunk/pypy/lib/ctypes_support.py
Log:
The _rawffi module is not available when running app tests directly on top of CPython.

Since running app tests does not work at all on Windows (a distutils problem probably),
I moved "import _rawffi" into the win32 specific part of the file.


Modified: pypy/trunk/pypy/lib/ctypes_support.py
==============================================================================
--- pypy/trunk/pypy/lib/ctypes_support.py	(original)
+++ pypy/trunk/pypy/lib/ctypes_support.py	Wed Jan 28 13:40:13 2009
@@ -9,9 +9,8 @@
 
 # __________ the standard C library __________
 
-import _rawffi
-
 if sys.platform == 'win32':
+    import _rawffi
     standard_c_lib = ctypes.CDLL('msvcrt', handle=_rawffi.get_libc())
 else:
     standard_c_lib = ctypes.CDLL(ctypes.util.find_library('c'))



More information about the Pypy-commit mailing list