Skip to content

Commit bb6e8d1

Browse files
committed
fix build
1 parent e3580ca commit bb6e8d1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.generator/Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,6 @@ RUN apt-get update && \
3838
# Set up environment variables for tool versions to make updates easier.
3939
ENV 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-
4441
RUN 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

0 commit comments

Comments
 (0)