diff options
author | Christoph Reiter <reiter.christoph@gmail.com> | 2019-07-26 19:51:53 +0200 |
---|---|---|
committer | Christoph Reiter <reiter.christoph@gmail.com> | 2019-07-26 18:26:56 +0000 |
commit | 2b0409206b6489431dea978076a310d7ad388d2d (patch) | |
tree | f6419643feb03d3c7939a606733c870c2488ee5b /giscanner/meson.build | |
parent | d2b675f45a96554f2510ddf749ea182c10d2664d (diff) | |
download | gobject-introspection-2b0409206b6489431dea978076a310d7ad388d2d.tar.gz |
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
Diffstat (limited to 'giscanner/meson.build')
-rw-r--r-- | giscanner/meson.build | 5 |
1 files changed, 5 insertions, 0 deletions
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, |