On Fri, Feb 21, 2014 at 11:52 AM, Anders Logg <[email protected]> wrote: > On Fri, Feb 21, 2014 at 11:37:35AM +0100, Johannes Ring wrote: >> On Fri, Feb 21, 2014 at 11:13 AM, Anders Logg <[email protected]> wrote: >> > On Fri, Feb 21, 2014 at 11:04:37AM +0100, Anders Logg wrote: >> >> On Fri, Feb 21, 2014 at 09:57:40AM +0000, Patrick Farrell wrote: >> >> > On 21/02/14 08:34, Anders Logg wrote: >> >> > >ok. But still the problem is that _ufc.so is installed directly under >> >> > >site-packages. I believe it should go into the UFC directory. >> >> > >> >> > Would this diff do the trick? >> >> > >> >> > diff --git setup.py setup.py >> >> > index 2d8e9db..60c68d6 100644 >> >> > --- setup.py >> >> > +++ setup.py >> >> > @@ -171,7 +171,7 @@ def run_install(): >> >> > **ext_kwargs) >> >> > >> >> > # Setup extension module for UFC >> >> > - ext_module_ufc = Extension("_ufc", >> >> > + ext_module_ufc = Extension("ufc._ufc", >> >> > sources=[os.path.join("ufc", "ufc.i")], >> >> > swig_opts=["-c++", "-shadow", "-modern", >> >> > "-modernargs", >> >> > "-fastdispatch", >> >> > >> >> > When I install this, it installs the _ufc.so as >> >> > PREFIX/lib/python2.7/ufc/_ufc.so. >> >> > >> >> > Best regards, >> >> >> >> Thanks - I'll try this! >> > >> > Seems to work. Now there's only the issue with unknown std::shared_ptr >> > in the JIT compilation. >> >> I think the problem is in templates/UseUFC.cmake.in. It is missing >> >> # Add compiler flags needed to use UFC >> set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${UFC_CXX_FLAGS}") >> >> like in cmake/UseUFC.cmake.in. > > ok. I'll try that. > > Something strange happened in the merge. I ended up with two directories: > > cmake/ > templates/ > > both containing the CMake templates. I think I chose the newest, which > were in templates. Before I add that flag, can you check if the other > files are correct versions?
Yes, thay are correct. Johannes _______________________________________________ fenics mailing list [email protected] http://fenicsproject.org/mailman/listinfo/fenics
