From 6496da1fc99d0068b93156aa24c32347edb56bc0 Mon Sep 17 00:00:00 2001 From: Laurent Chauvin Date: Fri, 3 Mar 2017 18:05:54 -0500 Subject: [PATCH] Removed numpy directory from include directory swiggfaiss_wrap.cxx already include , if compiled with -I/usr/lib64/python2.7/site-packages/numpy/core/include/numpy, file will be searched at /usr/lib64/python2.7/site-packages/numpy/core/include/numpy/numpy/arrayobject.h and will not be found. --- example_makefiles/makefile.inc.Linux | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example_makefiles/makefile.inc.Linux b/example_makefiles/makefile.inc.Linux index f634e6e0cd..868e6585fd 100644 --- a/example_makefiles/makefile.inc.Linux +++ b/example_makefiles/makefile.inc.Linux @@ -111,7 +111,7 @@ SWIGEXEC=swig # python3 -c "import numpy ; print(numpy.get_include())" # -PYTHONCFLAGS=-I/usr/include/python2.7/ -I/usr/lib64/python2.7/site-packages/numpy/core/include/numpy/ +PYTHONCFLAGS=-I/usr/include/python2.7/ -I/usr/lib64/python2.7/site-packages/numpy/core/include/ ###########################################################################