dgibson / dtc

Device Tree Compiler
215 stars 127 forks source link

meson: fix installation with meson-python #140

Closed blmaier closed 4 weeks ago

blmaier commented 4 weeks ago

The meson-python backend fails to map 'dtdiff' install into Python wheels. Removing the prefix from the install_dir path allows meson-python to map dtdiff. The install_data(install_dir) documentation says "If this is a relative path, it is assumed to be relative to the prefix"[1]. So removing the prefix does not change the installation behaviour.

[1] https://mesonbuild.com/Reference-manual_functions.html#install_data

blmaier commented 4 weeks ago

This is preliminary work towards migrating the Python backend away from deprecated setuptools

dgibson commented 4 weeks ago

Merged, thanks.