cleanup python installation

pull/16824/head
Jan Tattermusch 7 years ago
parent 577d2aa8b6
commit 07c4b2060a
  1. 20
      tools/gce/linux_kokoro_performance_worker_init.sh

@ -47,7 +47,6 @@ sudo apt-get install -y \
libtool \ libtool \
make \ make \
strace \ strace \
pypy \
python-dev \ python-dev \
python-pip \ python-pip \
python-setuptools \ python-setuptools \
@ -83,27 +82,18 @@ sudo pip install tabulate
sudo pip install google-api-python-client oauth2client sudo pip install google-api-python-client oauth2client
sudo pip install virtualenv sudo pip install virtualenv
# TODO(jtattermusch): revisit python installation # pypy is used instead of python for postprocessing benchmark outputs
# Building gRPC Python depends on python3.4 being installed, but python3.4 # because some reports are huge and pypy is much faster.
# is not available on Ubuntu 16.10, so install from source # TODO(jtattermusch): get rid of pypy once possible, it's hard to
curl -O https://www.python.org/ftp/python/3.4.6/Python-3.4.6.tgz # keep track of all the installed variants of python.
tar xzvf Python-3.4.6.tgz sudo apt-get install -y pypy pypy-dev
(
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
curl -O https://bootstrap.pypa.io/get-pip.py curl -O https://bootstrap.pypa.io/get-pip.py
sudo pypy get-pip.py sudo pypy get-pip.py
sudo pypy -m pip install tabulate sudo pypy -m pip install tabulate
sudo pypy -m pip install google-api-python-client oauth2client sudo pypy -m pip install google-api-python-client oauth2client
# TODO(jtattermusch): for some reason, we need psutil installed # TODO(jtattermusch): for some reason, we need psutil installed
# in pypy for kokoro_log_reader.py (strange, because the comand is # in pypy for kokoro_log_reader.py (strange, because the comand is
# "python kokoro_log_reader.py" and pypy is not the system default) # "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 sudo pypy -m pip install psutil
# Node dependencies (nvm has to be installed under user kbuilder) # Node dependencies (nvm has to be installed under user kbuilder)

Loading…
Cancel
Save