in pybuffer.cpp, the PY_NUMPY_BUFFER_FORMAT is defined only if PY_NUMPY is already defined:
|
# if defined(PY_NUMPY) |
|
# include <numpy/arrayobject.h> |
|
# if _FLEXT_NEED_SAMPLE_CONV |
|
# define PY_NUMPY_BUFFER_FORMAT "f" |
|
# else |
|
# define PY_NUMPY_BUFFER_FORMAT "d" |
|
# endif |
but later on, it is used even if PY_NUMPY is not defined:
|
view->format = (flags & PyBUF_FORMAT) ? (char *) PY_NUMPY_BUFFER_FORMAT : NULL; |
this obviously break the build if PY_NUMPY is not defined...
in pybuffer.cpp, the
PY_NUMPY_BUFFER_FORMATis defined only ifPY_NUMPYis already defined:py/source/pybuffer.cpp
Lines 31 to 37 in 35138a0
but later on, it is used even if
PY_NUMPYis not defined:py/source/pybuffer.cpp
Line 261 in 35138a0
this obviously break the build if
PY_NUMPYis not defined...