File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -38,9 +38,6 @@ RUN apt-get update && \
3838# Set up environment variables for tool versions to make updates easier.
3939ENV BAZELISK_VERSION=v1.26.0
4040
41- # Create an alias for python3.13.5 so that it points to 3.13
42- RUN alias python3.13.5='python3.13'
43-
4441RUN for PYTHON_VERSION in 3.9.23 3.10.18 3.11.13 3.12.11 3.13.5; do \
4542# Install Python from source
4643 wget https://www.python.org/ftp/python/${PYTHON_VERSION}/Python-${PYTHON_VERSION}.tgz && \
@@ -52,7 +49,10 @@ RUN for PYTHON_VERSION in 3.9.23 3.10.18 3.11.13 3.12.11 3.13.5; do \
5249 rm -rf Python-${PYTHON_VERSION}* && \
5350 # Install pip using the instructions below
5451 # https://pip.pypa.io/en/stable/installation/#ensurepip
55- python${PYTHON_VERSION} -m ensurepip --upgrade \
52+ python${PYTHON_VERSION} -m ensurepip --upgrade && \
53+ PYTHON_VERSION_TRIMMED=$(echo ${PYTHON_VERSION} | cut -d . -f -2) && \
54+ # Create an alias for python${PYTHON_VERSION} so that it points to python${PYTHON_VERSION_TRIMMED}
55+ alias python${PYTHON_VERSION}=${PYTHON_VERSION_TRIMMED} \
5656 ; done
5757
5858# Test Pip
You can’t perform that action at this time.
0 commit comments