mirror of
https://github.com/systemd/systemd
synced 2024-07-21 10:17:21 +00:00
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.
This commit is contained in:
parent
4da5e99a8f
commit
43a5fd98a5
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue