From: Heiko Becker Date: Mon, 21 Mar 2022 19:47:02 +0000 (+0100) Subject: meson: Detect python instead of hard-coding python3 X-Git-Tag: v251-rc1~57 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=43a5fd98a5d6a8e40a21dc00a9fe4006a32cb30f;p=thirdparty%2Fsystemd.git meson: Detect python instead of hard-coding python3 It allows to specify the desired python executable (and version) via meson's native file if there are multiple versions available. --- diff --git a/meson.build b/meson.build index 7de1baaf70a..7babab13635 100644 --- a/meson.build +++ b/meson.build @@ -638,7 +638,8 @@ endif ############################################################ -if run_command('python3', '-c', 'import jinja2', check : false).returncode() != 0 +python = find_program('python3') +if run_command(python, '-c', 'import jinja2', check : false).returncode() != 0 error('python3 jinja2 missing') endif