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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Dec 8, 2019 at 8:54 AM Roman Bogorodskiy <bogorodskiy@xxxxxxxxx> 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@xxxxxxxxx>
> ---
>  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@xxxxxxxxxx
> https://www.redhat.com/mailman/listinfo/libosinfo
>

Reviewed-by: Fabiano Fidêncio <fidencio@xxxxxxxxxx>


_______________________________________________
Libosinfo mailing list
Libosinfo@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libosinfo




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux