Skip to content

Commit a8ad318

Browse files
author
Derek
committed
fix(gnome): upgrade pip/pipx system-wide with --break-system-packages
Distro-packaged pipx is outdated (Ubuntu 24.04 = 1.4.3, need >= 1.7.0). Upgrade system-wide as root using --break-system-packages flag.
1 parent 7f3dad4 commit a8ad318

1 file changed

Lines changed: 5 additions & 9 deletions

File tree

ansible/roles/dfe_developer/tasks/gnome_common.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -50,20 +50,16 @@
5050

5151
# Distro-packaged pipx can be outdated (Ubuntu 24.04 has 1.4.3).
5252
# community.general.pipx requires >= 1.7.0 for application parameter.
53-
# Install latest pip/pipx to user's ~/.local/bin (does NOT modify system packages)
54-
- name: Install latest pip to user directory
53+
# Upgrade system-wide pip/pipx using --break-system-packages flag.
54+
- name: Upgrade pip system-wide to latest
5555
ansible.builtin.command:
56-
cmd: python3 -m pip install --user --upgrade pip
57-
become: false
58-
become_user: "{{ dfe_actual_user }}"
56+
cmd: python3 -m pip install --upgrade --break-system-packages pip
5957
changed_when: false
6058
when: ansible_facts['distribution'] in ['Ubuntu', 'Fedora']
6159

62-
- name: Install latest pipx to user directory
60+
- name: Upgrade pipx system-wide to latest
6361
ansible.builtin.command:
64-
cmd: python3 -m pip install --user --upgrade pipx
65-
become: false
66-
become_user: "{{ dfe_actual_user }}"
62+
cmd: python3 -m pip install --upgrade --break-system-packages pipx
6763
changed_when: false
6864
when: ansible_facts['distribution'] in ['Ubuntu', 'Fedora']
6965

0 commit comments

Comments
 (0)