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.
This commit is contained in:
Arne Welzel 2023-09-07 12:50:42 +02:00
parent 4ad2a6ab9a
commit d7b9d70fa8

View file

@ -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