diff options
author | Jan Tattermusch <jtattermusch@google.com> | 2018-10-11 22:09:17 +0200 |
---|---|---|
committer | Jan Tattermusch <jtattermusch@google.com> | 2018-10-12 12:26:02 +0200 |
commit | 07c4b2060afd43e1537551205a57fd770745b016 (patch) | |
tree | fa668c45d6129a8e87ed3368313d1c8a16ab3487 /tools/gce | |
parent | 577d2aa8b6ecbb6cc97e6c0f554527b59c49768f (diff) |
cleanup python installation
Diffstat (limited to 'tools/gce')
-rwxr-xr-x | tools/gce/linux_kokoro_performance_worker_init.sh | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/tools/gce/linux_kokoro_performance_worker_init.sh b/tools/gce/linux_kokoro_performance_worker_init.sh index 1b3022ce2b..81984e95d9 100755 --- a/tools/gce/linux_kokoro_performance_worker_init.sh +++ b/tools/gce/linux_kokoro_performance_worker_init.sh @@ -47,7 +47,6 @@ sudo apt-get install -y \ libtool \ make \ strace \ - pypy \ python-dev \ python-pip \ python-setuptools \ @@ -83,27 +82,18 @@ sudo pip install tabulate sudo pip install google-api-python-client oauth2client sudo pip install virtualenv -# TODO(jtattermusch): revisit python installation -# Building gRPC Python depends on python3.4 being installed, but python3.4 -# is not available on Ubuntu 16.10, so install from source -curl -O https://www.python.org/ftp/python/3.4.6/Python-3.4.6.tgz -tar xzvf Python-3.4.6.tgz -( -cd Python-3.4.6 || exit -./configure --enable-shared --prefix=/usr/local LDFLAGS="-Wl,--rpath=/usr/local/lib" -sudo make altinstall -) -rm Python-3.4.6.tgz - +# pypy is used instead of python for postprocessing benchmark outputs +# because some reports are huge and pypy is much faster. +# TODO(jtattermusch): get rid of pypy once possible, it's hard to +# keep track of all the installed variants of python. +sudo apt-get install -y pypy pypy-dev curl -O https://bootstrap.pypa.io/get-pip.py sudo pypy get-pip.py sudo pypy -m pip install tabulate sudo pypy -m pip install google-api-python-client oauth2client - # TODO(jtattermusch): for some reason, we need psutil installed # in pypy for kokoro_log_reader.py (strange, because the comand is # "python kokoro_log_reader.py" and pypy is not the system default) -sudo apt-get install -y pypy-dev sudo pypy -m pip install psutil # Node dependencies (nvm has to be installed under user kbuilder) |