Upgrade python in benchmark kokoro build (#10415)

* Fixing bad syntax

* Revert runtime fix

* Add python venv to use latest version
pull/10423/head
Mike Kruskal 2 years ago committed by GitHub
parent 6b46e5fb37
commit 373d8225af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      kokoro/linux/benchmark/run.sh

@ -12,6 +12,12 @@ set -ex
export OUTPUT_DIR=testoutput
repo_root="$(pwd)"
# Setup python virtual environment.
apt-get update -y
apt-get install -y --no-install-recommends python3 python3-venv
python3 -m venv venv
source venv/bin/activate
# TODO(jtattermusch): Add back support for benchmarking with tcmalloc for C++ and python.
# This feature was removed since it used to use tcmalloc from https://github.com/gperftools/gperftools.git
# which is very outdated. See https://github.com/protocolbuffers/protobuf/issues/8725.

Loading…
Cancel
Save