Skip to content

Commit

Permalink
ansible: install Python 3.9 on RHEL 8 (#3719)
Browse files Browse the repository at this point in the history
Fixes: #3718
  • Loading branch information
targos authored May 14, 2024
1 parent e2397a4 commit 3d2cdcc
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 24 deletions.
12 changes: 12 additions & 0 deletions ansible/roles/baselayout/tasks/partials/repo/rhel8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,15 @@
ansible.builtin.dnf:
name: https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
state: present

- name: install Python 3.9
ansible.builtin.dnf:
name: ['python39']
state: present
notify: package updated

- name: update python3 package alternatives
community.general.alternatives:
link: /usr/bin/python3
name: python3
path: /usr/bin/python3.9
9 changes: 1 addition & 8 deletions ansible/roles/build-test-v8/tasks/partials/rhel8-ppc64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@
#

# V8 builds still require Python 2.
# Newer V8 builds require Python 3.8, or later.
- name: install packages required to build V8
ansible.builtin.dnf:
name: ['glib2-devel', 'python2', 'python2-pip', 'python39']
name: ['glib2-devel', 'python2', 'python2-pip']
state: present
notify: package updated

Expand All @@ -18,12 +17,6 @@
name: python
path: /usr/bin/python2

- name: update python3 package alternatives
community.general.alternatives:
link: /usr/bin/python3
name: python3
path: /usr/bin/python3.9

- name: install dependencies for V8 build tools (Python 2)
ansible.builtin.pip:
executable: pip2
Expand Down
9 changes: 1 addition & 8 deletions ansible/roles/build-test-v8/tasks/partials/rhel8-s390x.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@
#

# Older V8 builds still require Python 2.
# Newer V8 builds require Python 3.8, or later.
- name: install packages required to build V8
ansible.builtin.dnf:
name: ['GConf2-devel', 'python2', 'python2-pip', 'python39', 'patch']
name: ['GConf2-devel', 'python2', 'python2-pip', 'patch']
state: present
notify: package updated

Expand All @@ -18,12 +17,6 @@
name: python
path: /usr/bin/python2

- name: update python3 package alternatives
community.general.alternatives:
link: /usr/bin/python3
name: python3
path: /usr/bin/python3.9

- name: install dependencies for V8 build tools (Python 2)
ansible.builtin.pip:
executable: pip2
Expand Down
9 changes: 1 addition & 8 deletions ansible/roles/build-test-v8/tasks/partials/rhel8-x64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,9 @@
state: enabled

# V8 builds still require Python 2.
# Newer V8 builds require Python 3.8, or later.
- name: install packages required to build V8
ansible.builtin.dnf:
name: ['ninja-build', 'python2', 'python2-pip', 'python39']
name: ['ninja-build', 'python2', 'python2-pip']
state: present
notify: package updated

Expand All @@ -24,12 +23,6 @@
name: python
path: /usr/bin/python2

- name: update python3 package alternatives
community.general.alternatives:
link: /usr/bin/python3
name: python3
path: /usr/bin/python3.9

- name: install dependencies for V8 build tools (Python 2)
ansible.builtin.pip:
executable: pip2
Expand Down

0 comments on commit 3d2cdcc

Please sign in to comment.