[dune-python] choosing virtualenv over venv
If the virtualenv and the venv package are both install, dune always chooses the virtualenv package, as seen in this excerpt from DunePythonVirtualenv.cmake
:
if(DUNE_PYTHON_venv_FOUND)
set(VIRTUALENV_PACKAGE_NAME venv)
set(NOPIP_OPTION --without-pip)
endif()
if(DUNE_PYTHON_virtualenv_FOUND)
set(VIRTUALENV_PACKAGE_NAME virtualenv)
set(NOPIP_OPTION --no-pip)
endif()
In one case this lead to installing the dune virtual environment with only python2.6 although python3.6 was available.
I suggest using an if-else
in the above code.