Re: [libvirt PATCH 2/3] build-aux: set the PYTHON variable in the Makefile

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

 



On Mon, Aug 03, 2020 at 11:59:23AM +0200, Ján Tomko wrote:
> Some syntax-check rules rely on this variable.
> 
> Signed-off-by: Ján Tomko <jtomko@xxxxxxxxxx>
> ---
>  build-aux/Makefile.in | 1 +
>  build-aux/meson.build | 1 +
>  2 files changed, 2 insertions(+)
> 
> diff --git a/build-aux/Makefile.in b/build-aux/Makefile.in
> index 601f1ad7a1..c4caa95467 100644
> --- a/build-aux/Makefile.in
> +++ b/build-aux/Makefile.in
> @@ -4,6 +4,7 @@ top_srcdir = @top_srcdir@
>  top_builddir = @top_builddir@
>  FLAKE8 = @flake8_path@
>  RUNUTF8 = @runutf8@
> +PYTHON = @PYTHON@
>  
>  # include syntax-check.mk file
>  include $(top_srcdir)/build-aux/syntax-check.mk
> diff --git a/build-aux/meson.build b/build-aux/meson.build
> index 1dd85b889b..8432e7bf3a 100644
> --- a/build-aux/meson.build
> +++ b/build-aux/meson.build
> @@ -8,6 +8,7 @@ if flake8_prog.found()
>  endif
>  syntax_check_conf.set('flake8_path', flake8_path)
>  syntax_check_conf.set('runutf8', ' '.join(runutf8))
> +syntax_check_conf.set('PYTHON', python3_prog.path())

I would go with PYTHON3 to make it consistent with how we generate
meson-config.h where we use PYTHON3 as well.

Attachment: signature.asc
Description: PGP signature


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

  Powered by Linux