Skip to content

Commit a041f2d

Browse files
committed
fix build
1 parent 33207f9 commit a041f2d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.generator/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,11 @@ RUN for PYTHON_VERSION in 3.9.23 3.10.18 3.11.13 3.12.11 3.13.5; do \
4949
rm -rf Python-${PYTHON_VERSION}* && \
5050
# Install pip using the instructions below
5151
# https://pip.pypa.io/en/stable/installation/#ensurepip
52-
python${PYTHON_VERSION} -m ensurepip --upgrade && \
5352
PYTHON_VERSION_TRIMMED=$(echo ${PYTHON_VERSION} | cut -d . -f -2) && \
5453
# Create an alias for python${PYTHON_VERSION} so that it points to python${PYTHON_VERSION_TRIMMED}
55-
alias python${PYTHON_VERSION}=python${PYTHON_VERSION_TRIMMED} \
54+
# to resolve error `python3.13.5: command not found` while `python3.13` works
55+
alias python${PYTHON_VERSION}=python${PYTHON_VERSION_TRIMMED} && \
56+
python${PYTHON_VERSION} -m ensurepip --upgrade \
5657
; done
5758

5859
# Test Pip

0 commit comments

Comments
 (0)