[pypy-svn] r68975 - pypy/trunk/pypy/rpython/tool

fijal at codespeak.net fijal at codespeak.net
Wed Nov 4 16:15:21 CET 2009


Author: fijal
Date: Wed Nov  4 16:15:15 2009
New Revision: 68975

Modified:
   pypy/trunk/pypy/rpython/tool/rffi_platform.py
Log:
A fix good enough to try compiling pypy on top of pypy, without crashing
too early


Modified: pypy/trunk/pypy/rpython/tool/rffi_platform.py
==============================================================================
--- pypy/trunk/pypy/rpython/tool/rffi_platform.py	(original)
+++ pypy/trunk/pypy/rpython/tool/rffi_platform.py	Wed Nov  4 16:15:15 2009
@@ -566,7 +566,7 @@
 def get_python_include_dir():
     from distutils import sysconfig
     gcv = sysconfig.get_config_vars()
-    return gcv['INCLUDEPY']
+    return gcv.get('INCLUDEPY', '.') # this is for running on top of pypy-c
 
 def configure_external_library(name, eci, configurations,
                                symbol=None, _cache={}):



More information about the Pypy-commit mailing list