[pypy-svn] r49181 - pypy/dist/pypy/module/thread

fijal at codespeak.net fijal at codespeak.net
Tue Nov 27 09:25:58 CET 2007


Author: fijal
Date: Tue Nov 27 09:25:57 2007
New Revision: 49181

Modified:
   pypy/dist/pypy/module/thread/ll_thread.py
Log:
We should rather kill Python.h dependency. But as long as we didn't,
lets include python include dir as well.


Modified: pypy/dist/pypy/module/thread/ll_thread.py
==============================================================================
--- pypy/dist/pypy/module/thread/ll_thread.py	(original)
+++ pypy/dist/pypy/module/thread/ll_thread.py	Tue Nov 27 09:25:57 2007
@@ -12,6 +12,8 @@
 from pypy.rpython.lltypesystem.lltype import typeOf
 from pypy.rlib.objectmodel import debug_assert
 from pypy.tool import autopath
+from distutils import sysconfig
+python_inc = sysconfig.get_python_inc()
 
 error = thread.error
 
@@ -22,7 +24,8 @@
     #include <src/exception.h>
     #include <src/thread.h>
     '''],
-    include_dirs = [str(py.path.local(autopath.pypydir).join('translator', 'c'))]
+    include_dirs = [str(py.path.local(autopath.pypydir).join('translator', 'c')),
+                    python_inc]
 )
 
 def llexternal(name, args, result, **kwds):



More information about the Pypy-commit mailing list