On 02/21/2014 02:15 PM, Anders Logg wrote:
UFC has now been merged into FFC. Some work remains to do some cleanup
after the merge (mostly merging of the documentation), but everything
should work now. This means that FEniCS users no longer need to
download and install UFC separately.


I'm getting this build error on master after the merge (I'm using dorsal with ufc manually commented out in the list of packages) :

----------------------------
marco@pao:~/Programmi/Dolphin/src_from_dorsal/ffc (master=)> dorsal_build
running install
running build
running build_py
running build_ext
building 'ffc.time_elements_ext' extension
gcc -pthread -fno-strict-aliasing -fmessage-length=0 -grecord-gcc-switches -fstack-protector -O2 -Wall -D_FORTIFY_SOURCE=2 -funwind-tables -fasynchronous-unwind-tables -g -DNDEBUG -fmessage-length=0 -grecord-gcc-switches -fstack-protector -O2 -Wall -D_FORTIFY_SOURCE=2 -funwind-tables -fasynchronous-unwind-tables -g -DOPENSSL_LOAD_CONF -fPIC -I/usr/include/python2.7 -c ffc/ext/time_elements_interface.cpp -o build/temp.linux-x86_64-2.7/ffc/ext/time_elements_interface.o ffc/ext/time_elements_interface.cpp:24:64: fatal error: site-packages/numpy/core/include/numpy/arrayobject.h: No such file or directory
 #include <site-packages/numpy/core/include/numpy/arrayobject.h>
                                                                ^
compilation terminated.
----------------------------

Don't know why it used to work before. However, it can be easily fixed by


diff --git a/setup.py b/setup.py
index 8c1a02c..0583e28 100644
--- a/setup.py
+++ b/setup.py
@@ -5,6 +5,7 @@ from distutils import sysconfig, spawn
 from distutils.core import setup, Extension
 from distutils.command import build_ext
 from distutils.version import LooseVersion
+import numpy as np

 VERSION   = "1.3.0+"
 CXX_FLAGS = "-std=c++11 " + os.environ.get("CXXFLAGS", "")
@@ -198,6 +199,7 @@ def run_install():
           package_dir      = {"ffc": "ffc",
                               "ufc": "ufc"},
           scripts          = scripts,
+          include_dirs     = [np.get_include()],
           ext_modules      = [ext_module_time, ext_module_ufc],
           cmdclass         = {"build_ext": my_build_ext},
           data_files       = [(os.path.join("share", "man", "man1"),

Regards,

Marco

_______________________________________________
fenics mailing list
[email protected]
http://fenicsproject.org/mailman/listinfo/fenics

Reply via email to