summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorSam Roberts <vieuxtech@gmail.com>2019-10-23 09:55:13 -0700
committerMichaël Zasso <targos@protonmail.com>2019-10-28 07:08:03 +0100
commitcedad02406a6a24453e010d9703a8082f44481ef (patch)
tree77958fab3a0864eae9518c24ad7264092f0a576e /configure
parentfd0aded233dc1ad743adc5ca80faa4807c470228 (diff)
downloadnode-new-cedad02406a6a24453e010d9703a8082f44481ef.tar.gz
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>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index 9259feb9e6..d1d7ff62ed 100755
--- a/configure
+++ b/configure
@@ -7,10 +7,10 @@
# pyenv will alert which shims are available and then will fail the build.
_=[ 'exec' '/bin/sh' '-c' '''
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.6 >/dev/null && exec python3.6 "$0" "$@"
which python3.5 >/dev/null && exec python3.5 "$0" "$@"
+which python2.7 >/dev/null && exec python2.7 "$0" "$@"
exec python "$0" "$@"
''' "$0" "$@"
]