diff options
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/meson.build b/meson.build index 965b237d23..d37f47d48b 100644 --- a/meson.build +++ b/meson.build @@ -1976,13 +1976,13 @@ if run_command(python, '-c', 'import jinja2', check : false).returncode() != 0 error('python3 jinja2 missing') endif -python_310 = run_command(python, '-c', - 'import sys; sys.exit(0 if sys.version_info >= (3,10) else 1)', - check : false).returncode() == 0 +python_39 = run_command(python, '-c', + 'import sys; sys.exit(0 if sys.version_info >= (3,9) else 1)', + check : false).returncode() == 0 if get_option('ukify') == 'auto' - want_ukify = python_310 and conf.get('HAVE_GNU_EFI') == 1 -elif get_option('ukify') == 'true' and (not python310 or conf.get('HAVE_GNU_EFI') != 1) - error('ukify requires Python >= 3.10 and GNU EFI') + want_ukify = python_39 and conf.get('HAVE_GNU_EFI') == 1 +elif get_option('ukify') == 'true' and (not python_39 or conf.get('HAVE_GNU_EFI') != 1) + error('ukify requires Python >= 3.9 and GNU EFI') else want_ukify = get_option('ukify') == 'true' endif |