Skip to content

Commit cedad02

Browse files
sam-githubtargos
authored andcommitted
build: prefer python 3 over 2 for configure
Change python search order to python3*, then python, then python2*. PR-URL: #30091 Reviewed-By: Christian Clauss <[email protected]> Reviewed-By: João Reis <[email protected]> Reviewed-By: Jiawen Geng <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
1 parent fd0aded commit cedad02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

configure

+1-1
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)