Targets with install_dir are not installed / SWIG support
Bug description:
Using install_dir : python.get_install_dir() / subdir
instead of subdir : subdir
in python.extension_module
causes the output to not be installed.
Expected behaviour:
install_dir : python.get_install_dir() / subdir
behaves the same as subdir subdir : subdir
Background: I am trying to package SWIG-generated bindings. SWIG dynamically generates python sources so that python.install_sources can not be used, because it expects the files to be present at invocation of meson.
For that reason I have to use custom_target to install the generated python sources. However, custom_target knows nothign about the python installation path so that we have to use install_dir
.
A workaround for packaging the generated python headers would be much appreciated, too.