From f87b0c2ce022f35734461e56410ad8af3819a819 Mon Sep 17 00:00:00 2001 From: Kjell Ahlstedt Date: Fri, 2 Dec 2022 13:49:33 +0100 Subject: meson.build: Simplify lookup of python command See libsigcplusplus PR#83 --- meson.build | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'meson.build') diff --git a/meson.build b/meson.build index 821f5c6..163d2fe 100644 --- a/meson.build +++ b/meson.build @@ -7,12 +7,7 @@ project('mm-common', # and meson.add_install_script(python3, ...) ) -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') # Use these instead of meson.source_root() and meson.build_root(). # source_root() and build_root() are not useful, if this is a subproject. -- cgit v1.2.1