New and old way of Python installation and compatibility
What constitutes the new way of installing the python bindings? Is it a breaking change? Is there already documentation (I guess !960 (merged)). The master branch in dumux wants to be compatible with dune 2.8 and dune master, therefore both installation methods should be supported. Is this possible?
Until now the CI did something like this (after running dunecontrol)
# Adds all Python modules found in other Dune modules to the PYTHONPATH
./dune-common/bin/dunecontrol bexec "echo -n :\$(pwd)/python >> $(pwd)/pythonpath.txt"
export PYTHONPATH=$PYTHONPATH$(cat pythonpath.txt)
rm pythonpath.txt
# Sets up the dune-py module for JIT compilation of Python binding code
./dune-common/bin/setup-dunepy.py --opts=cmake.opts install
This fails with the current dune master. (Fails to import a dune module in Python.) I guess this is expected, because the Python bindings in dumux don't implement all the changes from !960 (merged).
I needed to install python3-venv
on Ubuntu otherwise the installation crashed, is that expected? (dune-2.8 with python works fine without installing python3-venv
)