From: Matthew Fernandez Date: Sun, 24 May 2020 16:55:56 +0000 (-0700) Subject: use Python 3 compatible syntax in autotools check X-Git-Tag: 2.44.1~55^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b308bc031dbeb3b0af1f71d293b98b8048b2ac94;p=graphviz use Python 3 compatible syntax in autotools check We expect `python` to be a symlink to Python 3, not Python 2 but it does not hurt to use syntax compatible with both. Other Python checks in configure.ac were already using compatible syntax. Fixes #1626. --- diff --git a/configure.ac b/configure.ac index 8775da43e..cf4250473 100644 --- a/configure.ac +++ b/configure.ac @@ -1270,7 +1270,7 @@ else if test "x$PYTHON" = "x"; then use_python="No (python is too old)" else - PYTHON_PREFIX=`$PYTHON -c "import sys; print sys.prefix"` + PYTHON_PREFIX=`$PYTHON -c "import sys; print(sys.prefix)"` PYTHON_INCLUDES=-I$PYTHON_PREFIX/include/python$PYTHON_VERSION_SHORT # PYTHON_LIBS="-lpython$PYTHON_VERSION_SHORT" PYTHON_LIBS="-undefined dynamic_lookup"