Skip to content

Commit 53331c9

Browse files
authored
fix(python): ensure pip for python 3.10 (#173)
* fix(python): ensure pip for 3.10 * revert change for testing purposes * restore fix
1 parent 4c8f7b2 commit 53331c9

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

python/googleapis/python-multi/Dockerfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,10 +163,13 @@ RUN wget --no-check-certificate -O /tmp/get-pip.py 'https://bootstrap.pypa.io/ge
163163
# https://github.com/docker-library/python/pull/100
164164
&& [ "$(pip list |tac|tac| awk -F '[ ()]+' '$1 == "pip" { print $2; exit }')" = "$PYTHON_PIP_VERSION" ]
165165

166-
# Ensure Pip for 3.9
167-
RUN python3.9 /tmp/get-pip.py
166+
# Ensure Pip for 3.10
167+
RUN python3.10 /tmp/get-pip.py
168168
RUN rm /tmp/get-pip.py
169169

170+
# Test Pip
171+
RUN python3 -m pip
172+
170173
# Install "virtualenv", since the vast majority of users of this image
171174
# will want it.
172175
RUN pip install --no-cache-dir virtualenv

0 commit comments

Comments
 (0)