[Dune-devel] JIT compiling of python code uses wrong compile_commands

Simon Praetorius simon.praetorius at tu-dresden.de
Thu Apr 3 21:04:24 CEST 2025


Hi everyone,

I have posted a question already in the Dune support channel, but maybe 
here in the mailing list are more python experts:

I am currently trying to run a simple Python example in the dune-vtk 
module, i.e. |dune/python/test/testvtk.py|. I have built everything 
without a user specified venv, using the default that is created in the 
build directory. To run the code, I use the script 
|build/run-in-dune-venv.py| in my build directory |build/|. The problem 
I have is: The JIT compilation step uses an incomplete list of include 
directories. In particular, the include dirs from dune-vtk are not 
there. This can be seen in the |compile_commands.json| file, which is 
located in the dune-py directory in the dune-common build directory 
|build/dune-venv/.cache/dune-py|.

The error I get is "fatal error: dune/python/vtk/writer.hh: file or 
directory not found".

Can anyone tell me how this |compile_commands.json| file is generated? I 
am trying to figure out why it does not include all the include 
directories of the modules involved.

Best, Simon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.dune-project.org/pipermail/dune-devel/attachments/20250403/5c2dc9fe/attachment.htm>


More information about the Dune-devel mailing list