Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ansible: update V8 builders to Python 3.9 #3163

Merged
merged 1 commit into from
Feb 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion ansible/roles/build-test-v8/tasks/partials/rhel8-ppc64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@
#

# 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']
name: ['glib2-devel', 'python2', 'python2-pip', 'python39']
state: present
notify: package updated

Expand All @@ -17,6 +18,12 @@
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
11 changes: 9 additions & 2 deletions ansible/roles/build-test-v8/tasks/partials/rhel8-s390x.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@
# Install packages for V8 builds.
#

# V8 builds still require Python 2.
# 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', 'python3-httplib2']
name: ['GConf2-devel', 'python2', 'python2-pip', 'python39', 'python3-httplib2']
state: present
notify: package updated

Expand All @@ -17,6 +18,12 @@
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

# RHEL 8 doesn't have a package for httplib2 for Python 2 so install via pip.
- name: install httplib2
ansible.builtin.pip:
Expand Down
9 changes: 8 additions & 1 deletion ansible/roles/build-test-v8/tasks/partials/rhel8-x64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@
#

# 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: ['python2', 'python2-pip']
name: ['python2', 'python2-pip', 'python39']
state: present
notify: package updated

Expand All @@ -17,6 +18,12 @@
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