From cedad02406a6a24453e010d9703a8082f44481ef Mon Sep 17 00:00:00 2001 From: Sam Roberts Date: Wed, 23 Oct 2019 09:55:13 -0700 Subject: [PATCH] build: prefer python 3 over 2 for configure MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change python search order to python3*, then python, then python2*. PR-URL: https://github.com/nodejs/node/pull/30091 Reviewed-By: Christian Clauss Reviewed-By: João Reis Reviewed-By: Jiawen Geng Reviewed-By: Colin Ihrig --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure index 9259feb9e61671..d1d7ff62ed3428 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" "$@" ]