From 2b0409206b6489431dea978076a310d7ad388d2d Mon Sep 17 00:00:00 2001 From: Christoph Reiter Date: Fri, 26 Jul 2019 19:51:53 +0200 Subject: meson: abort the build if the correct Python dependency isn't found For some reason there is no way to pass required to external meson deps. Check manually instead. See #297 --- giscanner/meson.build | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/giscanner/meson.build b/giscanner/meson.build index 4ff28038..a3b06f37 100644 --- a/giscanner/meson.build +++ b/giscanner/meson.build @@ -106,6 +106,11 @@ else python_ext_dep = python.dependency().partial_dependency(compile_args: true) endif +if not python_ext_dep.found() + # For example if Python is 32bit but we require a 64bit variant + error('Python installation not useable') +endif + giscanner_pymod = python.extension_module('_giscanner', ['giscannermodule.c'], link_with: giscanner_lib, c_args: gi_hidden_visibility_cflags + custom_c_args, -- cgit v1.2.1