diff options
author | Kjell Ahlstedt <kjellahlstedt@gmail.com> | 2022-12-02 13:49:33 +0100 |
---|---|---|
committer | Kjell Ahlstedt <kjellahlstedt@gmail.com> | 2022-12-02 13:49:33 +0100 |
commit | f87b0c2ce022f35734461e56410ad8af3819a819 (patch) | |
tree | 1676b893917fec84162f628e526b3b95fc44ac52 | |
parent | f0c9755836307bd5d9fc2c6cc6ee666eb58b101e (diff) | |
download | mm-common-f87b0c2ce022f35734461e56410ad8af3819a819.tar.gz |
meson.build: Simplify lookup of python command
See libsigcplusplus PR#83
-rw-r--r-- | meson.build | 7 |
1 files changed, 1 insertions, 6 deletions
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. |