From 0a29c7369a4c6be050f5eea7425d335a314305f2 Mon Sep 17 00:00:00 2001 From: Aidan Harris Date: Sun, 27 Dec 2020 20:55:26 +0000 Subject: [PATCH] Explicitly test for the mako python module Some distros (Gentoo) support multiple versions of python3 and mako may not be built for all of the implementations. Testing for the module early will make sure meson bails out if the module cannot be found. --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 42808573..f3a196d6 100644 --- a/meson.build +++ b/meson.build @@ -7,7 +7,7 @@ project('MangoHud', cc = meson.get_compiler('c') cpp = meson.get_compiler('cpp') -prog_python = import('python').find_installation('python3') +prog_python = import('python').find_installation('python3', modules: ['mako']) null_dep = dependency('', required : false) mangohud_version = vcs_tag(