From: Anthony PERARD Date: Mon, 20 Jan 2020 11:50:53 +0000 (+0000) Subject: tools: Default to python3 X-Git-Tag: archive/raspbian/4.14.0+80-gd101b417b7-1+rpi1^2~63^2~713 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=3d3cf4bea8e5bd8edb3ae57a9b2f15449f1fbcb4;p=xen.git tools: Default to python3 Main reason, newer version of QEMU doesn't support python 2.x anymore. Second main reason, python2 is EOL. Signed-off-by: Anthony PERARD Acked-by: Wei Liu --- diff --git a/tools/configure b/tools/configure index 977a8837c3..13ee7f135c 100755 --- a/tools/configure +++ b/tools/configure @@ -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 diff --git a/tools/configure.ac b/tools/configure.ac index 8d86c42de8..f288d2cc3f 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