Skip to content

Commit 3d2cdcc

Browse files
authored
ansible: install Python 3.9 on RHEL 8 (#3719)
Fixes: #3718
1 parent e2397a4 commit 3d2cdcc

File tree

4 files changed

+15
-24
lines changed

4 files changed

+15
-24
lines changed

ansible/roles/baselayout/tasks/partials/repo/rhel8.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,15 @@
1212
ansible.builtin.dnf:
1313
name: https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
1414
state: present
15+
16+
- name: install Python 3.9
17+
ansible.builtin.dnf:
18+
name: ['python39']
19+
state: present
20+
notify: package updated
21+
22+
- name: update python3 package alternatives
23+
community.general.alternatives:
24+
link: /usr/bin/python3
25+
name: python3
26+
path: /usr/bin/python3.9

ansible/roles/build-test-v8/tasks/partials/rhel8-ppc64.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,9 @@
55
#
66

77
# V8 builds still require Python 2.
8-
# Newer V8 builds require Python 3.8, or later.
98
- name: install packages required to build V8
109
ansible.builtin.dnf:
11-
name: ['glib2-devel', 'python2', 'python2-pip', 'python39']
10+
name: ['glib2-devel', 'python2', 'python2-pip']
1211
state: present
1312
notify: package updated
1413

@@ -18,12 +17,6 @@
1817
name: python
1918
path: /usr/bin/python2
2019

21-
- name: update python3 package alternatives
22-
community.general.alternatives:
23-
link: /usr/bin/python3
24-
name: python3
25-
path: /usr/bin/python3.9
26-
2720
- name: install dependencies for V8 build tools (Python 2)
2821
ansible.builtin.pip:
2922
executable: pip2

ansible/roles/build-test-v8/tasks/partials/rhel8-s390x.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,9 @@
55
#
66

77
# Older V8 builds still require Python 2.
8-
# Newer V8 builds require Python 3.8, or later.
98
- name: install packages required to build V8
109
ansible.builtin.dnf:
11-
name: ['GConf2-devel', 'python2', 'python2-pip', 'python39', 'patch']
10+
name: ['GConf2-devel', 'python2', 'python2-pip', 'patch']
1211
state: present
1312
notify: package updated
1413

@@ -18,12 +17,6 @@
1817
name: python
1918
path: /usr/bin/python2
2019

21-
- name: update python3 package alternatives
22-
community.general.alternatives:
23-
link: /usr/bin/python3
24-
name: python3
25-
path: /usr/bin/python3.9
26-
2720
- name: install dependencies for V8 build tools (Python 2)
2821
ansible.builtin.pip:
2922
executable: pip2

ansible/roles/build-test-v8/tasks/partials/rhel8-x64.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,9 @@
1111
state: enabled
1212

1313
# V8 builds still require Python 2.
14-
# Newer V8 builds require Python 3.8, or later.
1514
- name: install packages required to build V8
1615
ansible.builtin.dnf:
17-
name: ['ninja-build', 'python2', 'python2-pip', 'python39']
16+
name: ['ninja-build', 'python2', 'python2-pip']
1817
state: present
1918
notify: package updated
2019

@@ -24,12 +23,6 @@
2423
name: python
2524
path: /usr/bin/python2
2625

27-
- name: update python3 package alternatives
28-
community.general.alternatives:
29-
link: /usr/bin/python3
30-
name: python3
31-
path: /usr/bin/python3.9
32-
3326
- name: install dependencies for V8 build tools (Python 2)
3427
ansible.builtin.pip:
3528
executable: pip2

0 commit comments

Comments
 (0)