Commit 11ed9af8 authored by Robert Bradshaw's avatar Robert Bradshaw

Trac #247, better error reporting when Python.h not found.

parent 59397e23
......@@ -406,6 +406,9 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
code.putln('#define PY_SSIZE_T_CLEAN')
for filename in env.python_include_files:
code.putln('#include "%s"' % filename)
code.putln("#ifndef Py_PYTHON_H")
code.putln(" #error Python headers needed to compile C extensions, please install development version of Python.")
code.putln("#endif")
code.putln("#ifndef PY_LONG_LONG")
code.putln(" #define PY_LONG_LONG LONG_LONG")
code.putln("#endif")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment