Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d52af76 commit 4b5a3edCopy full SHA for 4b5a3ed
1 file changed
numpy/core/setup.py
@@ -139,7 +139,11 @@ def generate_config_h(ext, build_dir):
139
log.info('Generating %s',target)
140
141
# Check we have the python header (-dev* packages on Linux)
142
- config_cmd.check_header('Python.h')
+ result = config_cmd.check_header('Python.h')
143
+ if not result:
144
+ raise SystemError(
145
+ "Cannot compiler 'Python.h'. Perhaps you need to "\
146
+ "install python-dev|python-devel.")
147
148
tc = generate_testcode(target)
149
result = config_cmd.try_run(tc, library_dirs = default_lib_dirs)
0 commit comments