]> xenbits.xensource.com Git - people/dwmw2/xen.git/commitdiff
tools: Default to python3
authorAnthony PERARD <anthony.perard@citrix.com>
Mon, 20 Jan 2020 11:50:53 +0000 (11:50 +0000)
committerWei Liu <wl@xen.org>
Tue, 11 Feb 2020 11:24:33 +0000 (11:24 +0000)
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>
tools/configure
tools/configure.ac

index 977a8837c33a25894b6ae8dce7acaf2b8ceea1ba..13ee7f135c69166607dcea3b25909efcaa58e592 100755 (executable)
@@ -6926,7 +6926,7 @@ then
 fi;;
 esac
 if test -z "$PYTHON"; then :
-  for ac_prog in python python3 python2
+  for ac_prog in python3 python python2
 do
   # Extract the first word of "$ac_prog", so it can be a program name with args.
 set dummy $ac_prog; ac_word=$2
index 8d86c42de8e5a24343639adff9a91c6c7be9c1b7..f288d2cc3fddfc9c4f0139899cec433636e483d3 100644 (file)
@@ -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