From c6d6e1b25ea5a926c106e35dd1d457cc88fdab60 Mon Sep 17 00:00:00 2001 From: Matheus Marchini Date: Sat, 7 Mar 2020 12:14:18 -0800 Subject: [PATCH] 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 --- configure | 1 + 1 file changed, 1 insertion(+) diff --git a/configure b/configure index 39decd9a55ccc7..bc0a01d985520b 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" "$@"