From d7b9d70fa814af90a38ca90e2af7b3a9fc04bb13 Mon Sep 17 00:00:00 2001 From: Arne Welzel Date: Thu, 7 Sep 2023 12:50:42 +0200 Subject: [PATCH] ci: update-alternative to have python3 be python3.9 Tweak so that python3 is correct for the Python_FIND_UNVERSIONED_NAMES change. python3 on 15.4 was pointing at Python3.6 still and for that there are no dev headers installed. A normal user could use --with-python instead, but in CI this is easier. --- ci/opensuse-leap-15.4/Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ci/opensuse-leap-15.4/Dockerfile b/ci/opensuse-leap-15.4/Dockerfile index 7a4177b7c5..4c48f49e05 100644 --- a/ci/opensuse-leap-15.4/Dockerfile +++ b/ci/opensuse-leap-15.4/Dockerfile @@ -29,6 +29,8 @@ RUN zypper addrepo https://download.opensuse.org/repositories/openSUSE:Leap:15.4 && rm -rf /var/cache/zypp RUN update-alternatives --install /usr/bin/pip3 pip3 /usr/bin/pip3.9 100 +RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.9 100 +RUN update-alternatives --install /usr/bin/python3-config python3-config /usr/bin/python3.9-config 100 RUN pip3 install websockets junit2html