Commit 7997dd38 authored by Dag Sverre Seljebotn's avatar Dag Sverre Seljebotn

Stop compilation when Python headers are not present

parent 8125f966
......@@ -236,7 +236,8 @@ class GlobalState(object):
'before_global_var',
'global_var',
'all_the_rest',
'utility_code_def'
'utility_code_def',
'end'
]
......
......@@ -425,7 +425,8 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
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("#else")
code.globalstate["end"].putln("#endif /* Py_PYTHON_H */")
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