DOLFIN install should check for python-ply

Issue #297 resolved
Patrick Farrell created an issue

If python-ply is not installed, this happens during the cmake configure:

-- Generating SWIG interface.
-- --------------------------
Traceback (most recent call last):
  File "/data/pfarrell/src/local/fenics-opt/src/dolfin/cmake/scripts/generate-swig-interface", line 36, in <module>
    from dolfin_utils.cppparser import *
  File "/data/pfarrell/src/local/fenics-opt/src/dolfin/site-packages/dolfin_utils/cppparser/__init__.py", line 1, in <module>
    from CppHeaderParser import CppHeader
  File "/data/pfarrell/src/local/fenics-opt/src/dolfin/site-packages/dolfin_utils/cppparser/CppHeaderParser.py", line 51, in <module>
    import ply.lex as lex
ImportError: No module named ply.lex

and the Python interface isn't built.

Surely it should be treated consistently with the other packages on which DOLFIN optionally depends, no?

Comments (5)

  1. Log in to comment