Skip to content

Commit e692d30

Browse files
authored
Merge pull request #1836 from natitomattis/fix-flatcar-pypy-installer
Fix pypy installer on Flatcar Azure
2 parents 05de067 + b584253 commit e692d30

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

images/capi/ansible/roles/python/defaults/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# limitations under the License.
1414

1515
---
16-
pypy_python_version: "3.6"
17-
pypy_version: 7.2.0
16+
pypy_python_version: "3.9"
17+
pypy_version: 7.3.16
1818
pypy_download_path: /tmp/pypy.tar.bz2
1919
pypy_install_path: /opt

images/capi/ansible/roles/python/tasks/flatcar.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@
2020
when:
2121
- pypy_installed.stdout_lines[0] == "false"
2222
vars:
23-
pypy_url_base: https://github.com/squeaky-pl/portable-pypy/releases/download/pypy{{ pypy_python_version }}-{{ pypy_version }}
24-
pypy_url_path: pypy{{ pypy_python_version }}-{{ pypy_version }}-linux_x86_64-portable.tar.bz2
23+
pypy_url_base: https://downloads.python.org/pypy
24+
pypy_url_path: pypy{{ pypy_python_version }}-v{{ pypy_version }}-linux64.tar.bz2
2525
block:
2626
- name: Download pypy archive
2727
ansible.builtin.raw: curl {{ pypy_url_base }}/{{ pypy_url_path }} -L --output {{ pypy_download_path }}
2828
- name: Extract archive
2929
ansible.builtin.raw: tar -xjf {{ pypy_download_path }} -C {{ pypy_install_path }}
3030
- name: Rename pypy folder
31-
ansible.builtin.raw: mv {{ pypy_install_path }}/pypy{{ pypy_python_version }}-{{ pypy_version }}-linux_x86_64-portable/ {{ pypy_install_path }}/pypy
31+
ansible.builtin.raw: mv {{ pypy_install_path }}/pypy{{ pypy_python_version }}-v{{ pypy_version }}-linux64/ {{ pypy_install_path }}/pypy
3232
- name: Delete downloaded archive
3333
ansible.builtin.raw: rm -f {{ pypy_download_path }}

0 commit comments

Comments
 (0)