[pypy-svn] r15611 - pypy/dist/pypy/translator/c

arigo at codespeak.net arigo at codespeak.net
Thu Aug 4 12:58:23 CEST 2005


Author: arigo
Date: Thu Aug  4 12:58:23 2005
New Revision: 15611

Modified:
   pypy/dist/pypy/translator/c/genc.py
Log:
Missing include path for compiling stand-alone executables that
still have to find Python.h


Modified: pypy/dist/pypy/translator/c/genc.py
==============================================================================
--- pypy/dist/pypy/translator/c/genc.py	(original)
+++ pypy/dist/pypy/translator/c/genc.py	Thu Aug  4 12:58:23 2005
@@ -89,8 +89,12 @@
     def compile(self):
         assert self.c_source_filename
         assert not self._compiled
+        # XXX for now, we always include Python.h
+        from distutils import sysconfig
+        python_inc = sysconfig.get_python_inc()
         self.executable_name = build_executable([self.c_source_filename],
-                                         include_dirs = [autopath.this_dir])
+                                         include_dirs = [autopath.this_dir,
+                                                         python_inc])
         self._compiled = True
         return self.executable_name
 



More information about the Pypy-commit mailing list