Skip to content

Commit

Permalink
detect python2 as Python 2 binary
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
JonnyJD committed Feb 6, 2014
1 parent 317c26a commit 3754cd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion configure
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3754cd8

Please sign in to comment.