diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2016-10-22 16:40:31 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-22 16:40:31 -0400 |
commit | ecfaa9b62fb2002f99bf86b023073d0fd681fd6b (patch) | |
tree | 787898db16d9074d724857ae05aaf3cf42bc0164 | |
parent | a5db9403a6ef0bfda4639e387a73ab50c1a84c31 (diff) | |
parent | 7621eba2e3d775d8cc197b369800a7036b2ee22f (diff) | |
download | python-numpy-ecfaa9b62fb2002f99bf86b023073d0fd681fd6b.tar.gz python-numpy-ecfaa9b62fb2002f99bf86b023073d0fd681fd6b.tar.bz2 python-numpy-ecfaa9b62fb2002f99bf86b023073d0fd681fd6b.zip |
Merge pull request #8202 from mattip/missing-Python.h
ENH: specialize name of dev package by interpreter
-rw-r--r-- | numpy/core/setup.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/numpy/core/setup.py b/numpy/core/setup.py index 24325437a..5ddd187f8 100644 --- a/numpy/core/setup.py +++ b/numpy/core/setup.py @@ -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)) |