Commit eb134570 authored by Nirbheek Chauhan's avatar Nirbheek Chauhan 🐜
Browse files

meson: Fix disabling of the python support

Cannot call python.dependency() if the python module was not found.
parent 35d140ad
Pipeline #77187 passed with stages
in 113 minutes and 31 seconds
......@@ -129,7 +129,11 @@ has_python = false
if build_gir
pymod = import('python')
python = pymod.find_installation(required: get_option('python'))
python_dep = python.dependency(required : get_option('python'))
if python.found()
python_dep = python.dependency(required : get_option('python'))
else
python_dep = dependency('', required: false)
endif
if python_dep.found()
python_abi_flags = python.get_variable('ABIFLAGS', '')
pylib_loc = get_option('libpython-dir')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment