aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Matt Kwong <mattkwong@google.com>2017-08-23 11:59:49 -0700
committerGravatar Matt Kwong <mattkwong@google.com>2017-08-29 13:01:15 -0700
commit1c8e04366e8ccacf31dbe7fd14206a2603e3521f (patch)
tree2602a32bf132862a2837cde04036945ee86555c2
parent969936bdd871565640636b7d22d680cfd98d3853 (diff)
Fix uploading Mac results to BQ
-rw-r--r--tools/internal_ci/helper_scripts/prepare_build_macos_rc10
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/internal_ci/helper_scripts/prepare_build_macos_rc b/tools/internal_ci/helper_scripts/prepare_build_macos_rc
index bd250957f4..6da0e1eeff 100644
--- a/tools/internal_ci/helper_scripts/prepare_build_macos_rc
+++ b/tools/internal_ci/helper_scripts/prepare_build_macos_rc
@@ -28,8 +28,7 @@ ulimit -n 10000
ulimit -a
# Add GCP credentials for BQ access
-# pip does not install google-api-python-client properly, so use easy_install
-sudo easy_install --upgrade google-api-python-client
+pip install google-api-python-client --user python
export GOOGLE_APPLICATION_CREDENTIALS=${KOKORO_GFILE_DIR}/GrpcTesting-d0eeee2db331.json
# required to build protobuf
@@ -53,9 +52,10 @@ pod repo update # needed by python
# python
brew install coreutils # we need grealpath
-sudo pip install virtualenv
-sudo pip install -U six tox setuptools
-export PYTHONPATH=/Library/Python/3.4/site-packages
+pip install virtualenv --user python
+pip install -U six tox setuptools --user python
+export PYTHONPATH=/Library/Python/2.7/site-packages
+source ~/.bashrc
# python 3.4
wget -q https://www.python.org/ftp/python/3.4.4/python-3.4.4-macosx10.6.pkg