Skip to content

Commit c43e73c

Browse files
committed
updated opensuse devcontainer with newer Python 3.11
1 parent 878a529 commit c43e73c

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

.devcontainer/opensuse/Containerfile

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
# Build stage with Spack pre-installed and ready to be used
22
FROM docker.io/opensuse/leap:15.5 AS builder
33

4-
RUN zypper install -y --no-recommends \
5-
curl git python3-pip python3-devel gcc14 gcc14-c++ xz patch gpg2 patchelf tar gzip unzip bzip2 \
6-
wget autoconf automake zlib-devel libcurl-devel cmake3 \
7-
libboost_filesystem1_75_0-devel libboost_regex1_75_0-devel libboost_program_options1_75_0-devel \
8-
&& pip3 install clingo gcovr
4+
RUN zypper ref && zypper -n install --no-recommends \
5+
curl git python311 python311-pip python311-devel \
6+
gcc14 gcc14-c++ xz patch gpg2 patchelf tar gzip unzip bzip2 \
7+
wget autoconf automake zlib-devel libcurl-devel cmake3 \
8+
libboost_filesystem1_75_0-devel libboost_regex1_75_0-devel libboost_program_options1_75_0-devel \
9+
libxml2-devel libxslt-devel \
10+
&& update-alternatives --set python3 /usr/bin/python3.11 || true \
11+
&& python3.11 -m pip install --upgrade "pip<25" setuptools wheel \
12+
&& python3.11 -m pip install clingo gcovr
13+
914
ENV CC=/usr/bin/gcc-14
1015
ENV CXX=/usr/bin/g++-14
1116

0 commit comments

Comments
 (0)