Skip to contentSkip to conversation

automation: use python-3.11 in Leap container

PATCH In review Olaf Hering 3 participants 3 messages Oct 7, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 automation: use python-3.11 in Leap container

python311 is available since Leap 15.4 as additional Python variant.

---
 automation/build/opensuse/leap-15.6-x86_64.dockerfile | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)
automation/build/opensuse/leap-15.6-x86_64.dockerfile +5 -4
index ea70dffe2a..97890dfc00 100644
@@ -3,6 +3,7 @@ FROM --platform=linux/amd64 opensuse/leap:15.6
 LABEL maintainer.name="The Xen Project"
 LABEL maintainer.email="[email protected]"
 
+ENV PYTHON=python3.11
 ENV XEN_TARGET_ARCH=x86_64
 
 RUN <<EOF
@@ -25,7 +26,7 @@ RUN <<EOF
         gawk
         gcc
         make
-        python3
+        python311
 
         # Tools (general)
         git-core
@@ -53,8 +54,8 @@ RUN <<EOF
         # xentop
         'pkgconfig(ncurses)'
         # Python bindings
-        python3-devel
-        python3-setuptools
+        python311-devel
+        python311-setuptools
         # Ocaml bindings/oxenstored
         ocaml
         ocaml-findlib
@@ -68,7 +69,7 @@ RUN <<EOF
         ninja
         'pkgconfig(glib-2.0)'
         'pkgconfig(pixman-1)'
-        python3-packaging
+        python311-packaging
     )
 
     zypper install -y --no-recommends "${DEPS[@]}"
#2 lore raw
Quoted 6 lines · Andrew Cooper
Quoted 3 lines · Olaf Hering

python311 is available since Leap 15.4 as additional Python variant.

assuming it doesn't break the build:

Quoted 2 lines

I'm tempted to take and deploy this immediately.  Leap is already not building QEMU, and this patch doesn't change.

I am OK with that