[Libosinfo] [osinfo-db-tools PATCH] meson: tests: make python3 really optional

Roman Bogorodskiy bogorodskiy at gmail.com
Sun Dec 8 07:53:45 UTC 2019


As python3 is supposed to be optional, pass
'required: false' to python.find_installation(), otherwise when
it's missing, build fails with:

  Program python found: NO
  tests/meson.build:12:0: ERROR: python3 not found

Signed-off-by: Roman Bogorodskiy <bogorodskiy at gmail.com>
---
 tests/meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/meson.build b/tests/meson.build
index 08ba470..05c7e1a 100644
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -9,7 +9,7 @@ test(
 
 python = import('python')
 
-python3 = python.find_installation('python3')
+python3 = python.find_installation('python3', required: false)
 if python3.found()
     tests = {
         'export-import': 'test_osinfo_db_export_import.py',
-- 
2.23.0





More information about the Libosinfo mailing list