Skip to content

Commit fdb42df

Browse files
committed
meson.build: Simplify lookup of python command
See libsigcplusplus PR#83
1 parent 595aa80 commit fdb42df

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

meson.build

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,8 @@ project_build_root = meson.current_build_dir()
4545

4646
cpp_compiler = meson.get_compiler('cpp')
4747
is_msvc = cpp_compiler.get_id() == 'msvc'
48-
python3 = import('python').find_installation()
4948

50-
python_version = python3.language_version()
51-
python_version_req = '>= 3.5'
52-
if not python_version.version_compare(python_version_req)
53-
error('Requires Python @0@, found @1@.'.format(python_version_req, python_version))
54-
endif
49+
python3 = find_program('python3', version: '>=3.5')
5550

5651
# Do we build from a git repository?
5752
# Suppose we do if and only if the meson.build file is tracked by git.

0 commit comments

Comments
 (0)