Skip to content

Commit 6c6649b

Browse files
committed
meson.build: Simplify lookup of python command
See libsigcplusplus PR#83
1 parent e076c81 commit 6c6649b

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
@@ -44,13 +44,8 @@ project_build_root = meson.current_build_dir()
4444

4545
cpp_compiler = meson.get_compiler('cpp')
4646
is_msvc = cpp_compiler.get_id() == 'msvc'
47-
python3 = import('python').find_installation()
4847

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

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

0 commit comments

Comments
 (0)