@@ -38,33 +38,40 @@ RUN apt-get update && \
3838# Set up environment variables for tool versions to make updates easier.
3939ENV BAZELISK_VERSION=v1.26.0
4040
41- # Get the pip installation script using the instructions below
42- # https://pip.pypa.io/en/stable/installation/#get-pip-py
43- # Attempts to use `ensurepip` instead of `get-pip.py` resulted in errors like `python3.13.5 not found`
44- RUN wget --no-check-certificate -O /tmp/get-pip.py 'https://bootstrap.pypa.io/get-pip.py'
45-
46-
47- RUN for PYTHON_VERSION in 3.9.23 3.10.18 3.11.13 3.12.11 3.13.5; do \
48- # Install Python from source
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 \
44+ # Install Python from source
4945 wget https://www.python.org/ftp/python/${PYTHON_VERSION}/Python-${PYTHON_VERSION}.tgz && \
5046 tar -xvf Python-${PYTHON_VERSION}.tgz && \
5147 cd Python-${PYTHON_VERSION} && \
5248 ./configure --enable-optimizations && \
5349 make altinstall && \
5450 cd / && \
5551 rm -rf Python-${PYTHON_VERSION}* && \
56- python${PYTHON_VERSION} /tmp/get-pip.py \
5752 ; done
5853
54+ # Get the pip installation script using the instructions below
55+ # https://pip.pypa.io/en/stable/installation/#get-pip-py
56+ # Attempts to use `ensurepip` instead of `get-pip.py` resulted in errors like `python3.13.5 not found`
57+ RUN wget --no-check-certificate -O /tmp/get-pip.py 'https://bootstrap.pypa.io/get-pip.py'
58+
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 \
62+ python${PYTHON_VERSION} /tmp/get-pip.py \
63+ ; done
64+
5965# Remove the pip installation script
6066RUN rm /tmp/get-pip.py
6167
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+
6274# Test Pip
63- RUN python3.9 -m pip
64- RUN python3.10 -m pip
65- RUN python3.11 -m pip
66- RUN python3.12 -m pip
67- RUN python3.13 -m pip
6875
6976
7077# TODO(https://github.com/googleapis/librarian/issues/904): Install protoc for gencode.
0 commit comments