From 536576fe8b9c718bf76b348c9fb3bef2a2a5abe0 Mon Sep 17 00:00:00 2001 From: Aleksandar Trifunovic Date: Thu, 13 Dec 2018 22:36:12 +0100 Subject: [PATCH] meson: conditional check to avoid use of depricated features after Meson v0.48.0 --- meson.build | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/meson.build b/meson.build index 631a2386..2fec0838 100644 --- a/meson.build +++ b/meson.build @@ -533,8 +533,13 @@ configure_file(input : 'dbus/org.freedesktop.ratbag1.conf.in', #### tools #### -python = import('python3') -py3 = python.find_python() +if meson.version().version_compare('<0.48.0') + python = import('python3') + py3 = python.find_python() +else + pymod = import('python') + py3 = pymod.find_installation() +endif # ratbagctl calls ratbagd over DBus custom_target('ratbagctl',