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 595aa80 commit fdb42dfCopy full SHA for fdb42df
meson.build
@@ -45,13 +45,8 @@ project_build_root = meson.current_build_dir()
45
46
cpp_compiler = meson.get_compiler('cpp')
47
is_msvc = cpp_compiler.get_id() == 'msvc'
48
-python3 = import('python').find_installation()
49
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
+python3 = find_program('python3', version: '>=3.5')
55
56
# Do we build from a git repository?
57
# Suppose we do if and only if the meson.build file is tracked by git.
0 commit comments