Menu

#16 python installation may have Python.h in nostandard include folder, and build may fail

open
nobody
None
5
2011-08-25
2011-08-25
Jira Trac
No

Please classify.

Problem:
python setup.py build complains about not finding Python.h
but locate finds Python.h
$ locate Python.h
/usr/include/python2.6/Python.h

solution is to use get_python_inc() function :
from distutils.sysconfig import get_python_inc
....
include_dirs=[cci_inc_dir, get_python_inc()]

Discussion

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.