diff mbox series

[XEN,3/3] tools: Default to python3

Message ID 20200120115053.1010739-4-anthony.perard@citrix.com (mailing list archive)
State New, archived
Headers show
Series Default to python3 | expand

Commit Message

Anthony PERARD Jan. 20, 2020, 11:50 a.m. UTC
Main reason, newer version of QEMU doesn't support python 2.x anymore.
Second main reason, python2 is EOL.

Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
---

Please, rerun ./autogen.sh
---
 tools/configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Wei Liu Jan. 27, 2020, 2:41 p.m. UTC | #1
On Mon, Jan 20, 2020 at 11:50:53AM +0000, Anthony PERARD wrote:
> Main reason, newer version of QEMU doesn't support python 2.x anymore.
> Second main reason, python2 is EOL.
> 
> Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>

Acked-by: Wei Liu <wl@xen.org>
diff mbox series

Patch

diff --git a/tools/configure.ac b/tools/configure.ac
index 8d86c42de8e5..f288d2cc3fdd 100644
--- a/tools/configure.ac
+++ b/tools/configure.ac
@@ -337,7 +337,7 @@  case "$host_os" in
   freebsd*) ;;
   *) AX_PATH_PROG_OR_FAIL([BASH], [bash]);;
 esac
-AS_IF([test -z "$PYTHON"], [AC_CHECK_PROGS([PYTHON], [python python3 python2], err)])
+AS_IF([test -z "$PYTHON"], [AC_CHECK_PROGS([PYTHON], [python3 python python2], err)])
 AS_IF([test "$PYTHON" = "err"], [AC_MSG_ERROR([No python interpreter found])])
 AS_IF([echo "$PYTHON" | grep -q "^/"], [], [AC_PATH_PROG([PYTHON], [$PYTHON])])
 PYTHONPATH=$PYTHON