Commit 3754cd80 authored by Johannes Dewender's avatar Johannes Dewender
Browse files

detect python2 as Python 2 binary

On some distributions like Arch Linux
"python" is Python 3 and "python2" is Python version 2.

We now try "python2" first and use it if available.
parent 317c26a6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -596,7 +596,7 @@ fi

printf "  Checking for python... "
if test "$f_python" = NO; then
  python_names="python"
  python_names="python2 python"
  python_dirs="$bin_dirs /usr/bin /usr/local/bin /bin /sbin"
  python_prog=NO
  python_found=NO