Skip to content

Commit

Permalink
meson: fix installation with meson-python
Browse files Browse the repository at this point in the history
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

Signed-off-by: Brandon Maier <[email protected]>
Signed-off-by: David Gibson <[email protected]>
  • Loading branch information
blmaier authored and dgibson committed Jul 1, 2024
1 parent d54aaf9 commit 49d3089
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ if get_option('tools')

install_data(
'dtdiff',
install_dir: get_option('prefix') / get_option('bindir'),
install_dir: get_option('bindir'),
install_mode: 'rwxr-xr-x',
)
endif
Expand Down

0 comments on commit 49d3089

Please sign in to comment.