File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -506,14 +506,14 @@ ifeq ($(DO_CHECKS), 1)
506
506
# NUMPY is available -> next step should not fail
507
507
# That's why we are not checking if the NUMPY_INCL_FLAG is defined.
508
508
ifeq ($(NUMPY_CHECKED), 0)
509
- export NUMPY_INCL_FLAG := $(shell $(PYTHON ) -c "from __future__ import print_function; import numpy; print('-isystem ' + numpy.__path__[0] + '/core /include/numpy /') ")
509
+ export NUMPY_INCL_FLAG := $(shell $(PYTHON ) -c "from __future__ import print_function; import numpy; print('-isystem ' + numpy.__path__[0] + '/_core /include/') ")
510
510
# Take the second word -> the path (the first word is "isystem")
511
511
NUMPY_INCL_PATH := $(word 2, ${NUMPY_INCL_FLAG})
512
512
# Now check that the 'arrayobject.h' file is present in the
513
513
# supposed numpy directory. Otherwise, compilation will fail.
514
514
# The absence of the file likely indicates a missing numpy-devel
515
515
# package (see issue #134 on github)
516
- NUMPY_NEEDED_HEADER_FILE := ${NUMPY_INCL_PATH}arrayobject.h
516
+ NUMPY_NEEDED_HEADER_FILE := ${NUMPY_INCL_PATH}numpy/ arrayobject.h
517
517
ifeq (,$(wildcard ${NUMPY_NEEDED_HEADER_FILE}))
518
518
$(error Required $(ccred)numpy headers$(ccreset) are missing...stopping the compilation. You might be able to fix this by installing $(ccblue)numpy-devel$(ccreset))
519
519
endif
Original file line number Diff line number Diff line change 10
10
#include <Python.h>
11
11
12
12
/* Now, include the numpy header*/
13
- #include <arrayobject.h>
13
+ #include <numpy/ arrayobject.h>
14
14
15
15
//for correlation functions
16
16
#include "countpairs_rp_pi_mocks.h"
Original file line number Diff line number Diff line change 15
15
#include <stdint.h>
16
16
17
17
/* Now, include the numpy header*/
18
- #include <arrayobject.h>
18
+ #include <numpy/ arrayobject.h>
19
19
20
20
//for correlation functions
21
21
#include "countpairs.h"
You can’t perform that action at this time.
0 commit comments