[Dune-devel] dune module packaging script

Dedner, Andreas A.S.Dedner at warwick.ac.uk
Fri Nov 20 22:54:32 CET 2026


Hi.
The following is a change to our dune packages and how packages can be build using
       dune-common/bin/dunepackaging.sh

Nothing will change except if you

  1.
Use dunepackaging.sh
  2.
Use pip installed packages for dune installation in a C++ context, i.e., use the env/include or env/share paths within a pure C++ workflow,. With the new packaging the location of dune files previously installed there will change and I see no obvious way to make this backwards compatible. But I don't know if anyone does this?
For usage within python, i.e.,  finding the includes in dune-py nothing changes.


The reason for the change is that our original setup was based on the scikit-build python package which has been obsolete for some time now. It's replacement is scikit-build-core.  I've now gotten around to looking into migrating the dunepackaging script. The new scikit package is not a direct replacement for the old one and switching comes with some hopefully mostly minor changes. The new setup moves from the old setup.py configuration to pyproject.toml files which also provides us with some new options. The old workflow for generating packages can still be used without change - as long as you don't install scikit-build-core. To switch to the new packaging there is very little (but not nothing) that developers of a dune module will have to do.

Details can be found in the dune-common MR
https://gitlab.dune-project.org/core/dune-common/-/merge_requests/1666

Since I'm not even sure how many belong to either of the above two categories, it is feasible that this is not really relevant for anyone. Since I've had to open a large number of MRs (with the minor change needed as detailed in the MR description) I would like to merge this soon if possible.
If you see any issue with this or really think you need more time to review and test then please let me know in the MR otherwise I would like to merge this beginning of December.

Best wishes
Andreas

PS: The github action we have for testing different workflows still pass after these changes.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.dune-project.org/pipermail/dune-devel/attachments/20261120/4d3cf7a9/attachment.htm>


More information about the Dune-devel mailing list