From eded69e1bd9efdd1bce9aaa938a1eb92d04052fe Mon Sep 17 00:00:00 2001 From: Richard Lau Date: Mon, 30 Jan 2023 21:18:37 +0000 Subject: [PATCH] ansible: update V8 builders to Python 3.9 Recent upstream V8 changes now require at least Python 3.8 to run the V8 test runner. --- .../build-test-v8/tasks/partials/rhel8-ppc64.yml | 9 ++++++++- .../build-test-v8/tasks/partials/rhel8-s390x.yml | 11 +++++++++-- .../roles/build-test-v8/tasks/partials/rhel8-x64.yml | 9 ++++++++- 3 files changed, 25 insertions(+), 4 deletions(-) diff --git a/ansible/roles/build-test-v8/tasks/partials/rhel8-ppc64.yml b/ansible/roles/build-test-v8/tasks/partials/rhel8-ppc64.yml index 881e5a9ef..467b35396 100644 --- a/ansible/roles/build-test-v8/tasks/partials/rhel8-ppc64.yml +++ b/ansible/roles/build-test-v8/tasks/partials/rhel8-ppc64.yml @@ -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 @@ -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 diff --git a/ansible/roles/build-test-v8/tasks/partials/rhel8-s390x.yml b/ansible/roles/build-test-v8/tasks/partials/rhel8-s390x.yml index 2da8d372a..8acafbe0e 100644 --- a/ansible/roles/build-test-v8/tasks/partials/rhel8-s390x.yml +++ b/ansible/roles/build-test-v8/tasks/partials/rhel8-s390x.yml @@ -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 @@ -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: diff --git a/ansible/roles/build-test-v8/tasks/partials/rhel8-x64.yml b/ansible/roles/build-test-v8/tasks/partials/rhel8-x64.yml index 395573fd0..d55fb89c8 100644 --- a/ansible/roles/build-test-v8/tasks/partials/rhel8-x64.yml +++ b/ansible/roles/build-test-v8/tasks/partials/rhel8-x64.yml @@ -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 @@ -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