diff --git a/meson.build b/meson.build index 96fc2e139a..80d8aa4728 100644 --- a/meson.build +++ b/meson.build @@ -1055,7 +1055,7 @@ pyopt = get_option('plpython') python3_dep = not_found_dep if not pyopt.disabled() pm = import('python') - python3_inst = pm.find_installation(required: pyopt) + python3_inst = pm.find_installation(python.path(), required: pyopt) if python3_inst.found() python3_dep = python3_inst.dependency(embed: true, required: pyopt) # Remove this check after we depend on Meson >= 1.1.0