Skip to content

Commit a2c1c4f

Browse files
authored
fix(python): use python installed by pyenv for bazel (#520)
1 parent 04cb397 commit a2c1c4f

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.kokoro-autosynth/build.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ cd /home/kbuilder/.pyenv/plugins/python-build/../.. && git pull && cd -
3232
pyenv install 3.6.9
3333
pyenv global 3.6.9
3434

35+
# use python installed by pyenv and use python3.6 specific set of dependencies
36+
echo "build --extra_toolchains=@gapic_generator_python//:pyenv3_toolchain --define=gapic_gen_python=3.6" > $HOME/.bazelrc
37+
echo "test --extra_toolchains=@gapic_generator_python//:pyenv3_toolchain --define=gapic_gen_python=3.6" >> $HOME/.bazelrc
38+
3539
# Disable buffering, so that the logs stream through.
3640
export PYTHONUNBUFFERED=1
3741

0 commit comments

Comments
 (0)