mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 13:48:44 +02:00
build: prefer python 3 over 2 for configure
Change python search order to python3*, then python, then python2*. PR-URL: https://github.com/nodejs/node/pull/30091 Reviewed-By: Christian Clauss <cclauss@me.com> Reviewed-By: João Reis <reis@janeasystems.com> Reviewed-By: Jiawen Geng <technicalcute@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This commit is contained in:
parent
11275dcf97
commit
b2ccbb27dc
1 changed files with 1 additions and 1 deletions
2
configure
vendored
2
configure
vendored
|
@ -7,10 +7,10 @@
|
||||||
# pyenv will alert which shims are available and then will fail the build.
|
# pyenv will alert which shims are available and then will fail the build.
|
||||||
_=[ 'exec' '/bin/sh' '-c' '''
|
_=[ 'exec' '/bin/sh' '-c' '''
|
||||||
test ${TRAVIS} && exec python "$0" "$@" # workaround for pyenv on Travis CI
|
test ${TRAVIS} && exec python "$0" "$@" # workaround for pyenv on Travis CI
|
||||||
which python2.7 >/dev/null && exec python2.7 "$0" "$@"
|
|
||||||
which python3.7 >/dev/null && exec python3.7 "$0" "$@"
|
which python3.7 >/dev/null && exec python3.7 "$0" "$@"
|
||||||
which python3.6 >/dev/null && exec python3.6 "$0" "$@"
|
which python3.6 >/dev/null && exec python3.6 "$0" "$@"
|
||||||
which python3.5 >/dev/null && exec python3.5 "$0" "$@"
|
which python3.5 >/dev/null && exec python3.5 "$0" "$@"
|
||||||
|
which python2.7 >/dev/null && exec python2.7 "$0" "$@"
|
||||||
exec python "$0" "$@"
|
exec python "$0" "$@"
|
||||||
''' "$0" "$@"
|
''' "$0" "$@"
|
||||||
]
|
]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue