[Libosinfo] [osinfo-db-tools PATCH] meson: tests: make python3 really optional
Fabiano Fidêncio
fidencio at redhat.com
Sun Dec 8 09:55:03 UTC 2019
On Sun, Dec 8, 2019 at 8:54 AM Roman Bogorodskiy <bogorodskiy at gmail.com> wrote:
>
> 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
>
>
> _______________________________________________
> Libosinfo mailing list
> Libosinfo at redhat.com
> https://www.redhat.com/mailman/listinfo/libosinfo
>
Reviewed-by: Fabiano Fidêncio <fidencio at redhat.com>
More information about the Libosinfo
mailing list