From 7621eba2e3d775d8cc197b369800a7036b2ee22f Mon Sep 17 00:00:00 2001 From: mattip Date: Sat, 22 Oct 2016 22:15:18 +0300 Subject: [PATCH] ENH: specialize name of dev package by interpreter --- numpy/core/setup.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/numpy/core/setup.py b/numpy/core/setup.py index 24325437a16e..5ddd187f8535 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))