CerebusOSS/CereLink

Compiler error when building cerebus.cbpy on OS X

Closed this issue · 1 comments

$ python setup.py build_ext --inplace
running build_ext
skipping 'cerebus/cbpyw.cpp' Cython extension (up-to-date)
building 'cerebus.cbpy' extension
clang -fno-strict-aliasing -fno-common -dynamic -I/usr/local/include -I/usr/local/opt/sqlite/include -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c cerebus/cbpyw.cpp -o build/temp.macosx-10.9-x86_64-2.7/cerebus/cbpyw.o
cerebus/cbpyw.cpp:316:10: fatal error: 'numpy/arrayobject.h' file not found

include "numpy/arrayobject.h"

     ^

1 error generated.
error: command 'clang' failed with exit status 1

This has been fixed already -- the following line was added to setup.py:

include_dirs=[numpy.get_include()],