xref: /aosp_15_r20/external/grpc-grpc/templates/tools/dockerfile/run_tests_python_deps_pep668.include (revision cc02d7e222339f7a4f6ba5f422e6413f4bd931f2)
1#====================
2# run_tests.py python dependencies
3
4# Basic python dependencies to be able to run tools/run_tests python scripts
5# These dependencies are not sufficient to build gRPC Python, gRPC Python
6# deps are defined elsewhere (e.g. python_deps.include)
7RUN apt-get update && apt-get install -y ${'\\'}
8  python3 ${'\\'}
9  python3-pip ${'\\'}
10  python3-setuptools ${'\\'}
11  python3-yaml ${'\\'}
12  && apt-get clean
13
14# use pinned version of pip to avoid sudden breakages
15# Some newer distros that have already implemented PEP 668. Use of
16# --break-system-packages is to workaround that. We should look into using
17# virtualenv in Dockerfile though.
18RUN python3 -m pip install --break-system-packages --upgrade pip==19.3.1
19
20# TODO(jtattermusch): currently six is needed for tools/run_tests scripts
21# but since our python2 usage is deprecated, we should get rid of it.
22RUN python3 -m pip install six==1.16.0
23
24<%include file="./gcp_api_libraries.include"/>
25