Re: [PATCH 02/12] tests: add Python3.12 to centos9.docker

[email protected]
Newsgroups org.nongnu.qemu-devel
Message-ID <178755712683.3526866.11521669620152567935.b4-review@b4>
> While we recently upgraded to Python 3.11 for the CentOS 9 container,
> upgrade it even further to Python 3.12.
> 
> Signed-off-by: John Snow <[email protected]>
> Message-ID: <[email protected]>
>
> diff --git a/tests/docker/dockerfiles/centos9.docker b/tests/docker/dockerfiles/centos9.docker
> index 6f5c400c2db1..8bfce395f9d7 100644
> --- a/tests/docker/dockerfiles/centos9.docker
> +++ b/tests/docker/dockerfiles/centos9.docker
> @@ -96,10 +96,10 @@ RUN dnf --quiet distro-sync -y && \
>                  pkgconfig \
>                  pulseaudio-libs-devel \
>                  python3-tomli \
> -                python3.11 \
> -                python3.11-pip \
> -                python3.11-setuptools \
> -                python3.11-wheel \
> +                python3.12 \
> +                python3.12-pip \
> +                python3.12-setuptools \
> +                python3.12-wheel \
>                  rdma-core-devel \
>                  rust \
>                  rust-std-static \
> @@ -129,7 +129,7 @@ RUN dnf --quiet distro-sync -y && \
>      ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/clang && \
>      ln -s /usr/bin/ccache /usr/libexec/ccache-wrappers/gcc
>  
> -RUN /usr/bin/pip3.11 install \
> +RUN /usr/bin/pip3.12 install \
>                       numpy \
>                       opencv-python \
>                       sphinx \
> @@ -139,7 +139,7 @@ ENV CCACHE_WRAPPERSDIR="/usr/libexec/ccache-wrappers"
>  ENV LANG="en_US.UTF-8"
>  ENV MAKE="/usr/bin/make"
>  ENV NINJA="/usr/bin/ninja"
> -ENV PYTHON="/usr/bin/python3.11"
> +ENV PYTHON="/usr/bin/python3.12"
>  # As a final step configure the user (if env is defined)
>  ARG USER
>  ARG UID
> diff --git a/tests/lcitool/mappings.yml b/tests/lcitool/mappings.yml
> index 2b317e0a61c5..5c56e4aca1b0 100644
> --- a/tests/lcitool/mappings.yml
> +++ b/tests/lcitool/mappings.yml
> @@ -4,16 +4,16 @@ mappings:
>      Ubuntu2204:
>  
>    python3:
> -    CentOSStream9: python3.11
> +    CentOSStream9: python3.12
>  
>    python3-devel:
> -    CentOSStream9: python3.11-devel
> +    CentOSStream9: python3.21-devel

3.21 -> 3.12

-- 
Marc-André Lureau <[email protected]>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.