aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2023-01-19 14:35:26 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2023-02-06 13:21:28 +0100
commit11b4a4eeec6054161aafdcb2f2faeb7c6ff36c99 (patch)
tree3b59c5a60011981482015a74f9fa60d1a574eec2 /scripts
parentcb1513df3fe4ee99eda8b0f69e044655f5979171 (diff)
downloadqemu-11b4a4eeec6054161aafdcb2f2faeb7c6ff36c99.zip
qemu-11b4a4eeec6054161aafdcb2f2faeb7c6ff36c99.tar.gz
qemu-11b4a4eeec6054161aafdcb2f2faeb7c6ff36c99.tar.bz2
scripts/ci: bump CentOS Python to 3.8
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/ci/org.centos/stream/8/build-environment.yml2
-rwxr-xr-xscripts/ci/org.centos/stream/8/x86_64/configure1
-rw-r--r--scripts/ci/setup/build-environment.yml14
3 files changed, 15 insertions, 2 deletions
diff --git a/scripts/ci/org.centos/stream/8/build-environment.yml b/scripts/ci/org.centos/stream/8/build-environment.yml
index b1768d1..0d094d7 100644
--- a/scripts/ci/org.centos/stream/8/build-environment.yml
+++ b/scripts/ci/org.centos/stream/8/build-environment.yml
@@ -65,7 +65,7 @@
- nmap-ncat
- numactl-devel
- pixman-devel
- - python36
+ - python38
- python3-sphinx
- rdma-core-devel
- redhat-rpm-config
diff --git a/scripts/ci/org.centos/stream/8/x86_64/configure b/scripts/ci/org.centos/stream/8/x86_64/configure
index 75882fa..65eacf3 100755
--- a/scripts/ci/org.centos/stream/8/x86_64/configure
+++ b/scripts/ci/org.centos/stream/8/x86_64/configure
@@ -16,6 +16,7 @@
# that patches adding downstream specific devices are not available.
#
../configure \
+--python=/usr/bin/python3.8 \
--prefix="/usr" \
--libdir="/usr/lib64" \
--datadir="/usr/share" \
diff --git a/scripts/ci/setup/build-environment.yml b/scripts/ci/setup/build-environment.yml
index 2274f73..78b1021 100644
--- a/scripts/ci/setup/build-environment.yml
+++ b/scripts/ci/setup/build-environment.yml
@@ -191,7 +191,7 @@
- nmap-ncat
- numactl-devel
- pixman-devel
- - python36
+ - python38
- python3-sphinx
- rdma-core-devel
- redhat-rpm-config
@@ -217,3 +217,15 @@
- ansible_facts['distribution_file_variety'] in ['RedHat', 'CentOS']
- ansible_facts['distribution_version'] == '8'
- ansible_facts['architecture'] == 'aarch64' or ansible_facts['architecture'] == 'x86_64'
+
+ - name: Check whether the Python runtime version is managed by alternatives
+ stat:
+ path: /etc/alternatives/python3
+ register: python3
+
+ - name: Set default Python runtime to 3.8 on EL8
+ command: alternatives --set python3 /usr/bin/python3.8
+ when:
+ - ansible_facts['distribution_file_variety'] in ['RedHat', 'CentOS']
+ - ansible_facts['distribution_version'] == '8'
+ - python3.stat.islnk and python3.stat.lnk_target != '/usr/bin/python3.8'