@@ -48,7 +48,8 @@ ENV BAZELISK_VERSION=v1.26.0
4848
4949# Install multiple Python versions from source. `make altinstall` is used to
5050# prevent replacing the system's default python binary.
51- RUN for PYTHON_VERSION in 3.9.23 3.10.18 3.11.13 3.12.11 3.13.5; do \
51+ # TODO(http://github.com/googleapis/gapic-generator-python/issues/2435): Remove `3.10.18` when the linked issue is resolved.
52+ RUN for PYTHON_VERSION in 3.9.23 3.10.18 3.13.5; do \
5253 wget https://www.python.org/ftp/python/${PYTHON_VERSION}/Python-${PYTHON_VERSION}.tgz && \
5354 tar -xvf Python-${PYTHON_VERSION}.tgz && \
5455 cd Python-${PYTHON_VERSION} && \
@@ -60,8 +61,9 @@ RUN for PYTHON_VERSION in 3.9.23 3.10.18 3.11.13 3.12.11 3.13.5; do \
6061 ; done
6162
6263# Install pip for each python version
64+ # TODO(http://github.com/googleapis/gapic-generator-python/issues/2435): Remove `3.10` when the linked issue is resolved.
6365RUN wget --no-check-certificate -O /tmp/get-pip.py 'https://bootstrap.pypa.io/get-pip.py' && \
64- for PYTHON_VERSION in 3.9 3.10 3.11 3.12 3. 13; do \
66+ for PYTHON_VERSION in 3.9 3.10 3.13; do \
6567 python${PYTHON_VERSION} /tmp/get-pip.py; \
6668 done && \
6769 rm /tmp/get-pip.py
@@ -142,15 +144,10 @@ RUN apt-get update && \
142144COPY --from=builder /usr/local/bin/python3.9 /usr/local/bin/
143145COPY --from=builder /usr/local/lib/python3.9 /usr/local/lib/python3.9
144146
147+ # TODO(http://github.com/googleapis/gapic-generator-python/issues/2435): Remove `3.10` when the linked issue is resolved.
145148COPY --from=builder /usr/local/bin/python3.10 /usr/local/bin/
146149COPY --from=builder /usr/local/lib/python3.10 /usr/local/lib/python3.10
147150
148- COPY --from=builder /usr/local/bin/python3.11 /usr/local/bin/
149- COPY --from=builder /usr/local/lib/python3.11 /usr/local/lib/python3.11
150-
151- COPY --from=builder /usr/local/bin/python3.12 /usr/local/bin/
152- COPY --from=builder /usr/local/lib/python3.12 /usr/local/lib/python3.12
153-
154151COPY --from=builder /usr/local/bin/python3.13 /usr/local/bin/
155152COPY --from=builder /usr/local/lib/python3.13 /usr/local/lib/python3.13
156153
0 commit comments