Skip to content

Commit 49d4ae9

Browse files
authored
update python in docker files (#1097)
1 parent 46ffb97 commit 49d4ae9

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/Dockerfile

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,23 @@ ARG COMPILER_PATH
99
ARG COMPILER_LD_LIBRARY_PATH
1010

1111
RUN apt-get update -y && \
12+
apt-get install -y software-properties-common ca-certificates gnupg && \
13+
add-apt-repository ppa:deadsnakes/ppa && \
14+
apt-get update -y && \
1215
if [ "$TARGET" != "gpu" ]; then \
1316
apt-get install -y \
14-
build-essential git make cmake gcc g++ gfortran bc\
15-
python3 python3-venv python3-pip \
17+
build-essential git make cmake gcc g++ gfortran bc \
18+
python3.11 python3.11-venv python3-pip \
1619
openmpi-bin libopenmpi-dev libfftw3-dev \
1720
mpich libmpich-dev; \
1821
else \
1922
apt-get install -y \
20-
build-essential git make cmake bc\
21-
python3 python3-venv python3-pip \
23+
build-essential git make cmake bc \
24+
python3.11 python3.11-venv python3-pip \
2225
libfftw3-dev \
2326
openmpi-bin libopenmpi-dev; \
2427
fi && \
28+
update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.11 2 && \
2529
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
2630

2731
ENV OMPI_ALLOW_RUN_AS_ROOT=1

0 commit comments

Comments
 (0)