From f0bbffca8ddaee66c2054fe4e26d2d60ad15d2b6 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Fri, 30 Jan 2015 18:14:45 +1100 Subject: [PATCH] * Fix the way numpy headers are installed during compilation from source --- setup.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index d61ff54ab..8e9f80a58 100644 --- a/setup.py +++ b/setup.py @@ -17,7 +17,7 @@ import platform # PyPy --- NB! PyPy doesn't really work, it segfaults all over the place. But, # this is necessary to get it compile. # We have to resort to monkey-patching to set the compiler, because pypy broke -# ALL the EVERTHING. +# all the everything. pre_patch_customize_compiler = sysconfig.customize_compiler def my_customize_compiler(compiler): @@ -42,7 +42,8 @@ includes = ['.', path.join(sys.prefix, 'include')] try: import numpy - includes.append(numpy.get_include()) + numpy_headers = path.join(numpy.get_include(), 'numpy') + shutil.copytree(numpy_headers, path.join(sys.prefix, 'include', 'numpy')) except ImportError: pass