From 49d30894466e78cc8fbc0c09dcdccdd4de709181 Mon Sep 17 00:00:00 2001 From: Brandon Maier Date: Mon, 8 Apr 2024 22:27:13 -0500 Subject: [PATCH] meson: fix installation with meson-python 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 Signed-off-by: David Gibson --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 4bb11961..310699f0 100644 --- a/meson.build +++ b/meson.build @@ -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