From dc8f3aadabc1b1f122da8089db345eae72e90c4c Mon Sep 17 00:00:00 2001 From: wael <40663@proton.me> Date: Fri, 4 Nov 2022 08:23:43 +0300 Subject: [PATCH] meson: simplify lookup of python command --- meson.build | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/meson.build b/meson.build index ee588f3..2fede19 100644 --- a/meson.build +++ b/meson.build @@ -41,13 +41,7 @@ project_build_root = meson.current_build_dir() cpp_compiler = meson.get_compiler('cpp') is_msvc = cpp_compiler.get_id() == 'msvc' -python3 = import('python').find_installation() - -python_version = python3.language_version() -python_version_req = '>= 3.5' -if not python_version.version_compare(python_version_req) - error('Requires Python @0@, found @1@.'.format(python_version_req, python_version)) -endif +python3 = find_program('python3', version: '>=3.5') # Do we build from a git repository? # Suppose we do if and only if the meson.build file is tracked by git.
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: