mirror of https://github.com/grpc/grpc.git
[Python run_test] Support Python3.12 (#35325)
Fix: https://github.com/grpc/grpc/issues/35085 <!-- If you know who should review your pull request, please assign it to that person, otherwise the pull request would get assigned randomly. If your pull request is for a specific language, please add the appropriate lang label. --> Closes #35325 PiperOrigin-RevId: 592635611pull/35369/head
parent
5aeb7dabe0
commit
2d7b751d4e
8 changed files with 67 additions and 38 deletions
@ -0,0 +1,21 @@ |
||||
#================= |
||||
# Compile CPython 3.12.0 from source |
||||
|
||||
RUN apt-get update && apt-get install -y zlib1g-dev libssl-dev libsqlite3-dev && apt-get clean |
||||
RUN apt-get update && apt-get install -y jq build-essential libffi-dev && apt-get clean |
||||
|
||||
RUN cd /tmp && ${'\\'} |
||||
wget -q https://www.python.org/ftp/python/3.12.0/Python-3.12.0.tgz && ${'\\'} |
||||
tar xzvf Python-3.12.0.tgz && ${'\\'} |
||||
cd Python-3.12.0 && ${'\\'} |
||||
./configure && ${'\\'} |
||||
make -j4 && ${'\\'} |
||||
make install |
||||
|
||||
|
||||
RUN cd /tmp && ${'\\'} |
||||
echo "d6eda3e1399cef5dfde7c4f319b0596c Python-3.12.0.tgz" > checksum.md5 && ${'\\'} |
||||
md5sum -c checksum.md5 |
||||
|
||||
RUN python3.12 -m ensurepip && ${'\\'} |
||||
python3.12 -m pip install coverage |
@ -1 +1 @@ |
||||
us-docker.pkg.dev/grpc-testing/testing-images-public/python_debian11_default_x64:3aec01d65a59f4583b9a54369fc5d08b84b1017e@sha256:51107bfe5f9ef2c9d9c7a6554a16c4335a6d48f81a47cf6176fb36eca0605f02 |
||||
us-docker.pkg.dev/grpc-testing/testing-images-public/python_debian11_default_x64:05951fbd0e77e8ba072d270ad08f0d4b6ac00841@sha256:a956ff4bfbfa4fc6a00c7113f2dada7ce8cf4011f236f07197732981875d6519 |
Loading…
Reference in new issue