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

Ján Tomko jtomko at redhat.com
Mon Aug 3 09:59:23 UTC 2020


Some syntax-check rules rely on this variable.

Signed-off-by: Ján Tomko <jtomko at redhat.com>
---
 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())
 
 configure_file(
   input: 'Makefile.in',
-- 
2.26.2




More information about the libvir-list mailing list