Skip to content

Commit

Permalink
autogen.sh: detect more python-x.y filenames
Browse files Browse the repository at this point in the history
  • Loading branch information
jimklimov committed Mar 31, 2022
1 parent a801ed4 commit 53d15c7
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion autogen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,14 @@ if [ -n "${PYTHON-}" ] ; then
}
else
PYTHON=""
for P in python python3 python2 ; do
for P in python python3 python2 \
python-3.10 python3.10 \
python-3.9 python3.9 \
python-3.7 python3.7 \
python-3.5 python3.5 \
python-3.4 python3.4 \
python-2.7 python2.7 \
; do
if (command -v "$P" >/dev/null) && $P -c "import re,glob,codecs" ; then
PYTHON="$P"
break
Expand Down

0 comments on commit 53d15c7

Please sign in to comment.