dune_python_install_package can only install packages without setup.py
Before the python overhaul, the dune_python_install_package
was intended to install complete python packages other than dune. This is not possible anymore. The reasons and possible solutions are:
- Python projects are expected to have a
setup.py.in
file or a generic one will be provided. This does not hold for well-formed python projects because they have other ownsetup.py
and the CMake generatedsetup.py
is not appropriate. f954a5a1 is offending commit where the path to the python project is unconditionally set to the binary directory instead of the source directory. A solution is to set thePYINST_FULLPATH
to the binary directory only if nosetup.py
is provided. - The
pip install
is called with a--no-index
argument. While this is fine for dune projects, this is not ideal for generic project installations where thesetup.py
states dependencies expected to be fulfilled bypip
. A solution for this would be to have an opt-in option to have index (e.g.USE_INDEX
).