dune python main file
Suggestion:
#. Add a __main__.py
to python/dune
in dune-common
which provides an option to produce configuration output. So calling python -m dune configuration
would generate output that can be added to a bug report, containing for example CMakeCache.txt
from dune-py
,
pip list | grep dune
and hash information of the dune modules.
#. Add a upgrade
command to __main__
that provides an easy way to patch a dune package without having to go through an extra upload to pypi
(i.e. for a branch or for testing). Something like this
pip install scikit-build
pip install --no-cache-dir --no-deps --upgrade --no-build-isolation -i https://gitlab.dune-project.org/api/v4/projects/???/packages/pypi/simple dune-grid
could be executed when calling python -m dune update -i gitlab grid
Edited by Andreas Dedner