Comment 3 for bug 1037311

Revision history for this message
Martin Sandve Alnæs (martinal) wrote : Re: [Bug 1037311] Re: cmake configure doesn't look for python-ply

Good idea.

Martin
Den 16. aug. 2012 08:50 skrev "Johan Hake" <email address hidden>
følgende:

> We could make sure some of PyDOLFIN runtime dependencies are installed
> by separately importing them. If they are not installed we can issue a
> nicely formated message?
>
> Johan
>
> On 08/16/2012 08:21 AM, Johannes Ring wrote:
> > Actually, I'm not sure we should add a check for PLY in the build system
> > since it is only a runtime dependency. AFAIK, we do not have such a
> > check for other runtime dependencies like FFC and UFL. Opinions?
> >
> > ** Changed in: dolfin
> > Status: In Progress => Opinion
> >
> > ** Changed in: dolfin
> > Importance: High => Medium
> >
>
> --
> You received this bug notification because you are a member of DOLFIN
> Core Team, which is subscribed to DOLFIN.
> https://bugs.launchpad.net/bugs/1037311
>
> Title:
> cmake configure doesn't look for python-ply
>
> Status in DOLFIN:
> Opinion
>
> Bug description:
> I checked out the trunk and built it just fine. However, when I try to
> import dolfin I get
>
>
> /home/pef/src/dolfin/trunk/local/lib/python2.7/dist-packages/dolfin_utils/cppparser/CppHeaderParser.py
> in <module>()
> 49 """
> 50
> ---> 51 import ply.lex as lex
> 52 import os
> 53 import sys
>
> ImportError: No module named ply.lex
>
> It appears a dependency has been added on the python-ply package, but
> cmake hasn't been configured to demand it.
>
> (Installing python-ply fixes the proximate problem.)
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/dolfin/+bug/1037311/+subscriptions
>