[Dune-devel] Python/Build system meeting: Input wanted

Dedner, Andreas A.S.Dedner at warwick.ac.uk
Wed May 5 13:37:00 CEST 2021


Dear developers.

This is a follow up from an email from Dominic (on 05/02).
Following the discussion, we had on the Python bindings and the build internal virtual environment,
Dominic started work on making the changes along the lines of what we discussed.
Over the last week I've made some changes to get packaging and some other thngs up and running again based on these changes.
The main merge request
https://gitlab.dune-project.org/core/dune-common/-/merge_requests/960
contains hopefully useful information on the changes and some of the consequences.
I would suggest having a discussion on the changes there. There other core modules (and some others) have companion MRs (still marked WIP).
Best
Andreas

PS: At the time we asked everyone interested to summarize their use cases for combining Dune and Python.
I just went through that list again and think everything is addressed:

Adrian:  can use pip install (and even combine with own source module)
Babara:  will now get an internal dune-env installed which she might not want
         Can disable by disabling the cmake lookup of Python but that is
         perhaps not obvious to her - perhaps give her an easy flag to set?
Clara:   should be mostly fine - differences are documented.
         But I guess there are different viewpoints on this
Dominic: should be happy since internal venv is now on by default
Andreas: works fine for me
Linus:   Can't say for sure but hope he's happy?
Robert:  A bit like Babara, i.e., might get an internal venv he doesn't use
Oliver:  Embedded is still a bit of an issue which is mostly a venv problem
         1. An external venv is used: then everything should be fine
         2. the internal venv is used: make tests will be fine but calling
            a C++ code directly will fail since the venv interpreter is not
            used and the dune packages are not found. Needs to run
            build-dir/run-in-env ./test
         This is an issue with venv/embedded that has been discussed on the venv
         mailing lists but never fixed
Christian: These issues are a bit separate from these changes and need to
         be discussed separately, I think. Some of the things mentioned should
         work already I believe.
         At least I hope that current changes don't make things worse.
________________________________
From: Dune-devel <dune-devel-bounces at lists.dune-project.org> on behalf of Dominic Kempf <dominic.r.kempf at gmail.com>
Sent: 05 February 2021 16:15
To: dune-devel at lists.dune-project.org <dune-devel at lists.dune-project.org>
Subject: [Dune-devel] Python/Build system meeting: Input wanted

Dear developers,

we had a small meeting today that emerged from recent discussions on Gitlab issues + MRs to get an overview of the Python landscape in Dune. Participants were Andreas, Robert, Simon, Carsten, Samuel and myself. I think we made some progress, but we want to build on everybody's feedback to continue.

We would like to collect a list of use cases formulated as fictional or non-fictional user profiles. Just add yours to the list:
https://cryptpad.fr/pad/#/2/pad/edit/Cdg8eTGASWgdQetoM06emmp7/
This list will serve as the basis of discussion to converge to a technical solution that accommodates the needs of as many users as possible and allows a consensus to enable the Python bindings feature by default in the future.

Best,
Dominic


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.dune-project.org/pipermail/dune-devel/attachments/20210505/3e08fccd/attachment.htm>


More information about the Dune-devel mailing list