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.infile or a generic one will be provided. This does not hold for well-formed python projects because they have other ownsetup.pyand the CMake generatedsetup.pyis 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_FULLPATHto the binary directory only if nosetup.pyis provided. - The
pip installis called with a--no-indexargument. While this is fine for dune projects, this is not ideal for generic project installations where thesetup.pystates 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).