Skip to content

Commit c0624cf

Browse files
committed
build: prefer python 3 over 2 for configure
Change python search order to python3*, then python, then python2*.
1 parent d53dd8b commit c0624cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

configure

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
# pyenv will alert which shims are available and then will fail the build.
88
_=[ 'exec' '/bin/sh' '-c' '''
99
test ${TRAVIS} && exec python "$0" "$@" # workaround for pyenv on Travis CI
10-
which python2.7 >/dev/null && exec python2.7 "$0" "$@"
1110
which python3.7 >/dev/null && exec python3.7 "$0" "$@"
1211
which python3.6 >/dev/null && exec python3.6 "$0" "$@"
1312
which python3.5 >/dev/null && exec python3.5 "$0" "$@"
13+
which python2.7 >/dev/null && exec python2.7 "$0" "$@"
1414
exec python "$0" "$@"
1515
''' "$0" "$@"
1616
]

0 commit comments

Comments
 (0)