diff options
author | Matheus Marchini <mmarchini@netflix.com> | 2020-03-07 23:14:18 +0300 |
---|---|---|
committer | Matheus Marchini <mmarchini@netflix.com> | 2020-03-10 19:50:55 +0300 |
commit | de8fab95a8525105b5611a0f815c72bb0f9c8a30 (patch) | |
tree | f4a8c2f861a44158f590253224d9244b2872ae59 /configure | |
parent | c933cbfd74a8ba3ba18a9aa30a9230bd21c0e4e0 (diff) |
build: workaround for gclient python3 issues
gclient doesn't support Python 3 yet. To workaround that problem, add an
enviroment variable to override the Python version used by ./configure.
Signed-off-by: Matheus Marchini <mmarchini@netflix.com>
PR-URL: https://github.com/nodejs/node/pull/32140
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Reviewed-By: Christian Clauss <cclauss@me.com>
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/configure b/configure index 39decd9a55c..bc0a01d9855 100755 --- a/configure +++ b/configure @@ -7,6 +7,7 @@ # 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 +test ${FORCE_PYTHON2} && exec python2 "$0" "$@" # workaround for gclient which python3.8 >/dev/null && exec python3.8 "$0" "$@" which python3.7 >/dev/null && exec python3.7 "$0" "$@" which python3.6 >/dev/null && exec python3.6 "$0" "$@" |