]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Meson: Check python PyYAML package
authorFred Morcos <fred.morcos@open-xchange.com>
Tue, 22 Aug 2023 15:06:04 +0000 (17:06 +0200)
committerFred Morcos <fred.morcos@open-xchange.com>
Wed, 20 Mar 2024 12:28:47 +0000 (13:28 +0100)
meson/python/meson.build

index 8655beed8dfbe4ac1941cb866da2c515c93b738d..c0705d55f7992ecc0e7ccb5cb7e939986a723481 100644 (file)
@@ -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')