From 44f599bb6f3dbbb6d9488f214d92c65fdf17114e Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Mon, 30 Apr 2018 19:42:54 +0100 Subject: [PATCH] Improve detection of Python's 2to3 tool Distributions seem to install it as 2to3-X.Y where the interpreter is installed as pythonX.Y --- configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index bdfdcbb7a..0a90d39f5 100644 --- a/configure.ac +++ b/configure.ac @@ -904,7 +904,8 @@ fi AC_ARG_WITH(2to3, AS_HELP_STRING([--with-2to3=path], [Set location of Python 2to3 tool]), [PY2TO3BIN="$withval"], [PY2TO3BIN="yes"]) if test -n "$PYTHON3"; then if test "x$PY2TO3BIN" = xyes; then - AC_CHECK_PROGS(PY2TO3, 2to3) + py3to2=`echo $PYTHON3 | sed -e "s/python/2to3-/"` + AC_CHECK_PROGS(PY2TO3, $py3to2 2to3) else PY2TO3="$PY2TO3BIN" fi