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 ef672fc commit d318524Copy full SHA for d318524
meson.build
@@ -41,13 +41,7 @@ project_build_root = meson.current_build_dir()
41
42
cpp_compiler = meson.get_compiler('cpp')
43
is_msvc = cpp_compiler.get_id() == 'msvc'
44
-python3 = import('python').find_installation()
45
-
46
-python_version = python3.language_version()
47
-python_version_req = '>= 3.5'
48
-if not python_version.version_compare(python_version_req)
49
- error('Requires Python @0@, found @1@.'.format(python_version_req, python_version))
50
-endif
+python3 = find_program('python3', version: '>=3.5')
51
52
# Do we build from a git repository?
53
# Suppose we do if and only if the meson.build file is tracked by git.
0 commit comments