Commits

Maciej Fijalkowski  committed 8f59c5b

A fix good enough to try compiling pypy on top of pypy, without crashing
too early

  • Participants
  • Parent commits dc72964

Comments (0)

Files changed (1)

File pypy/rpython/tool/rffi_platform.py

 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={}):