@@ -38,40 +38,34 @@ RUN apt-get update && \
3838# Set up environment variables for tool versions to make updates easier.
3939ENV BAZELISK_VERSION=v1.26.0
4040
41- # temporarily comment out all python versions except 3.13 for a faster feedback loop
42- # RUN for PYTHON_VERSION in 3.9.23 3.10.18 3.11.13 3.12.11 3.13.5; do \
43- RUN for PYTHON_VERSION in 3.13.5; do \
41+ RUN for PYTHON_VERSION in 3.9.23 3.10.18 3.11.13 3.12.11 3.13.5; do \
4442 # Install Python from source
4543 wget https://www.python.org/ftp/python/${PYTHON_VERSION}/Python-${PYTHON_VERSION}.tgz && \
4644 tar -xvf Python-${PYTHON_VERSION}.tgz && \
4745 cd Python-${PYTHON_VERSION} && \
4846 ./configure --enable-optimizations && \
4947 make altinstall && \
5048 cd / && \
51- rm -rf Python-${PYTHON_VERSION}* && \
49+ rm -rf Python-${PYTHON_VERSION}* \
5250 ; done
5351
5452# Get the pip installation script using the instructions below
5553# https://pip.pypa.io/en/stable/installation/#get-pip-py
5654# Attempts to use `ensurepip` instead of `get-pip.py` resulted in errors like `python3.13.5 not found`
5755RUN wget --no-check-certificate -O /tmp/get-pip.py 'https://bootstrap.pypa.io/get-pip.py'
5856
59- # temporarily comment out all python versions except 3.13 for a faster feedback loop
60- # RUN for PYTHON_VERSION in 3.9 3.10 3.11 3.12 3.13; do \
61- RUN for PYTHON_VERSION in 3.13; do \
57+ # Install pip for each python version
58+ RUN for PYTHON_VERSION in 3.9 3.10 3.11 3.12 3.13; do \
6259 python${PYTHON_VERSION} /tmp/get-pip.py \
6360 ; done
6461
6562# Remove the pip installation script
6663RUN rm /tmp/get-pip.py
6764
68- # temporarily comment out all python versions except 3.13 for a faster feedback loop
69- # RUN for PYTHON_VERSION in 3.9 3.10 3.11 3.12 3.13; do \
70- RUN for PYTHON_VERSION in 3.13; do \
71- python${PYTHON_VERSION} -m pip
72- ; done
73-
7465# Test Pip
66+ RUN for PYTHON_VERSION in 3.9 3.10 3.11 3.12 3.13; do \
67+ python${PYTHON_VERSION} -m pip \
68+ ; done
7569
7670
7771# TODO(https://github.com/googleapis/librarian/issues/904): Install protoc for gencode.
0 commit comments