From 22cc5d8caa8acf6b8dbe257cfd64231b6df2a1a5 Mon Sep 17 00:00:00 2001 From: Mario Limonciello Date: Thu, 1 Sep 2022 17:50:55 -0500 Subject: [PATCH] trivial: find python installation using meson find_installation --- meson.build | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/meson.build b/meson.build index e02a7b6fe..95bac60a7 100644 --- a/meson.build +++ b/meson.build @@ -273,11 +273,7 @@ if libgcab.type_name() == 'pkgconfig' and cc.has_function('gcab_file_set_bytes', endif bashcomp = dependency('bash-completion', required: false) -if host_machine.system() != 'freebsd' - python3 = find_program('python3') -else - python3 = find_program('python3.8', 'python3', 'python3.9') -endif +python3 = import('python').find_installation('python3') gnutls = dependency('gnutls', version: '>= 3.6.0', required: get_option('gnutls')) if gnutls.found()