mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 18:44:58 -06:00
scripts/ci: bump CentOS Python to 3.8
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
cb1513df3f
commit
11b4a4eeec
3 changed files with 15 additions and 2 deletions
|
@ -65,7 +65,7 @@
|
||||||
- nmap-ncat
|
- nmap-ncat
|
||||||
- numactl-devel
|
- numactl-devel
|
||||||
- pixman-devel
|
- pixman-devel
|
||||||
- python36
|
- python38
|
||||||
- python3-sphinx
|
- python3-sphinx
|
||||||
- rdma-core-devel
|
- rdma-core-devel
|
||||||
- redhat-rpm-config
|
- redhat-rpm-config
|
||||||
|
|
|
@ -16,6 +16,7 @@
|
||||||
# that patches adding downstream specific devices are not available.
|
# that patches adding downstream specific devices are not available.
|
||||||
#
|
#
|
||||||
../configure \
|
../configure \
|
||||||
|
--python=/usr/bin/python3.8 \
|
||||||
--prefix="/usr" \
|
--prefix="/usr" \
|
||||||
--libdir="/usr/lib64" \
|
--libdir="/usr/lib64" \
|
||||||
--datadir="/usr/share" \
|
--datadir="/usr/share" \
|
||||||
|
|
|
@ -191,7 +191,7 @@
|
||||||
- nmap-ncat
|
- nmap-ncat
|
||||||
- numactl-devel
|
- numactl-devel
|
||||||
- pixman-devel
|
- pixman-devel
|
||||||
- python36
|
- python38
|
||||||
- python3-sphinx
|
- python3-sphinx
|
||||||
- rdma-core-devel
|
- rdma-core-devel
|
||||||
- redhat-rpm-config
|
- redhat-rpm-config
|
||||||
|
@ -217,3 +217,15 @@
|
||||||
- ansible_facts['distribution_file_variety'] in ['RedHat', 'CentOS']
|
- ansible_facts['distribution_file_variety'] in ['RedHat', 'CentOS']
|
||||||
- ansible_facts['distribution_version'] == '8'
|
- ansible_facts['distribution_version'] == '8'
|
||||||
- ansible_facts['architecture'] == 'aarch64' or ansible_facts['architecture'] == 'x86_64'
|
- 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'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue