- changed status to resolved
Wrong numpy is picked up by `CMake`
Issue #148
resolved
If two versions of NumPy
is installed, local and system wide, and the local version is compiled against system Python, the wrong NumPy
include files are picked up by CMake
causing outputs like:
In file included from /usr/include/python2.7/numpy/ndarraytypes.h:1728:0,
from /usr/include/python2.7/numpy/ndarrayobject.h:17,
from /usr/include/python2.7/numpy/arrayobject.h:15,
from /home/hake/git/fenics/dolfin/build-johanhake-function-assigner/dolfin/swig/modules/mesh/modulePYTHON_wrap.cxx:4106:
/usr/include/python2.7/numpy/npy_deprecated_api.h:11:2: warning: #warning "Using deprecated NumPy API, disable it by #defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
#warning "Using deprecated NumPy API, disable it by #defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION"
^
/usr/include/python2.7/numpy/npy_deprecated_api.h:23:2: error: #error Should never include npy_deprecated_api directly.
#error Should never include npy_deprecated_api directly.
^
Should be an easy fix.
Comments (1)
-
reporter - Log in to comment
Fixed by: 1e3926f0ad726b063ff19551710b4c322a857025