diff options
author | wael <40663@proton.me> | 2022-11-04 08:23:43 +0300 |
---|---|---|
committer | Kjell Ahlstedt <kjellahlstedt@gmail.com> | 2022-11-07 09:50:25 +0100 |
commit | d3185243035dbc07d9d1f3e593d52b2f95e9a981 (patch) | |
tree | 93bc459f29d9587757856657bfd0172b54cb54ac | |
parent | ef672fcb4099fc586e791e67fe41fe48639005c4 (diff) | |
download | sigc++-d3185243035dbc07d9d1f3e593d52b2f95e9a981.tar.gz |
meson: simplify lookup of python command
-rw-r--r-- | meson.build | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/meson.build b/meson.build index 718a049..2ab1391 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. |