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.

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

Reply via email to