Skip to content

Commit

Permalink
ENH: specialize name of dev package by interpreter
Browse files Browse the repository at this point in the history
  • Loading branch information
mattip committed Oct 22, 2016
1 parent a5db940 commit 7621eba
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion numpy/core/setup.py
Expand Up @@ -267,9 +267,12 @@ def check_types(config_cmd, ext, build_dir):
# Check we have the python header (-dev* packages on Linux)
result = config_cmd.check_header('Python.h')
if not result:
python = 'python'
if '__pypy__' in sys.builtin_module_names:
python = 'pypy'
raise SystemError(
"Cannot compile 'Python.h'. Perhaps you need to "
"install python-dev|python-devel.")
"install {0}-dev|{0}-devel.".format(python))
res = config_cmd.check_header("endian.h")
if res:
private_defines.append(('HAVE_ENDIAN_H', 1))
Expand Down

0 comments on commit 7621eba

Please sign in to comment.