We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e076c81 commit 6c6649bCopy full SHA for 6c6649b
meson.build
@@ -44,13 +44,8 @@ project_build_root = meson.current_build_dir()
44
45
cpp_compiler = meson.get_compiler('cpp')
46
is_msvc = cpp_compiler.get_id() == 'msvc'
47
-python3 = import('python').find_installation()
48
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
+python3 = find_program('python3', version: '>=3.5')
54
55
# Do we build from a git repository?
56
# Suppose we do if and only if the meson.build file is tracked by git.
0 commit comments