dgibson / dtc

Device Tree Compiler
235 stars 134 forks source link

meson: fix installation with meson-python #140

Closed blmaier closed 4 months ago

blmaier commented 4 months 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 months ago

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

dgibson commented 4 months ago

Merged, thanks.