Skip to content

Commit de8fab9

Browse files
committed
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: #32140 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Christian Clauss <cclauss@me.com>
1 parent c933cbf commit de8fab9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

configure

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
# pyenv will alert which shims are available and then will fail the build.
88
_=[ 'exec' '/bin/sh' '-c' '''
99
test ${TRAVIS} && exec python "$0" "$@" # workaround for pyenv on Travis CI
10+
test ${FORCE_PYTHON2} && exec python2 "$0" "$@" # workaround for gclient
1011
which python3.8 >/dev/null && exec python3.8 "$0" "$@"
1112
which python3.7 >/dev/null && exec python3.7 "$0" "$@"
1213
which python3.6 >/dev/null && exec python3.6 "$0" "$@"

0 commit comments

Comments
 (0)