Skip to content

Commit

Permalink
fix(python): use python installed by pyenv for bazel (googleapis#520)
Browse files Browse the repository at this point in the history
  • Loading branch information
chingor13 authored May 4, 2020
1 parent 04cb397 commit a2c1c4f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .kokoro-autosynth/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ cd /home/kbuilder/.pyenv/plugins/python-build/../.. && git pull && cd -
pyenv install 3.6.9
pyenv global 3.6.9

# use python installed by pyenv and use python3.6 specific set of dependencies
echo "build --extra_toolchains=@gapic_generator_python//:pyenv3_toolchain --define=gapic_gen_python=3.6" > $HOME/.bazelrc
echo "test --extra_toolchains=@gapic_generator_python//:pyenv3_toolchain --define=gapic_gen_python=3.6" >> $HOME/.bazelrc

# Disable buffering, so that the logs stream through.
export PYTHONUNBUFFERED=1

Expand Down

0 comments on commit a2c1c4f

Please sign in to comment.