aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Matt Kwong <matt-kwong@users.noreply.github.com>2017-08-30 09:43:09 -0700
committerGravatar GitHub <noreply@github.com>2017-08-30 09:43:09 -0700
commit5646c7463c24ddd04e639ddd35b63db0c0dc06fb (patch)
tree3b5d73c96f4c048bd2a5efa811fcbf3f560cac6d
parentb7beb45a2f1fafdf752b0b4b051cf673747a96ad (diff)
parent1c8e04366e8ccacf31dbe7fd14206a2603e3521f (diff)
Merge pull request #12270 from matt-kwong/kokoro_mac_bq
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