From: Fred Morcos Date: Tue, 22 Aug 2023 15:06:04 +0000 (+0200) Subject: Meson: Check python PyYAML package X-Git-Tag: rec-5.1.0-alpha1~80^2~143 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c2d7b6cf85a2d318f7654d367c0550f449531e66;p=thirdparty%2Fpdns.git Meson: Check python PyYAML package --- diff --git a/meson/python/meson.build b/meson/python/meson.build index 8655beed8d..c0705d55f7 100644 --- a/meson/python/meson.build +++ b/meson/python/meson.build @@ -1,5 +1,11 @@ +expected_modules = from_git ? ['yaml'] : [] + py = import('python') -python_prog = py.find_installation('python3', required: false) +python_prog = py.find_installation( + 'python3', + modules: expected_modules, + required: from_git, +) summary('Python', python_prog.found(), bool_yn: true, section: 'Python') summary('Path', python_prog.full_path(), section: 'Python')