Skip to content

Commit

Permalink
Install Pipx via apt
Browse files Browse the repository at this point in the history
Debian has opted in adopting PEP 668. This means that they no longer
allow package installations outside of virtualenvironments.

References:
- pypa/pipx#982
- https://peps.python.org/pep-0668/
- https://salsa.debian.org/python-team/packages/python-pip/-/blob/a1d853a6e9a0621d5cfcbf358ba6f7abebc26655/debian/NEWS
  • Loading branch information
qubetzl committed Sep 10, 2023
1 parent dc53f00 commit 17c33f4
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions roles/dev_tools/tasks/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,9 @@
name: pyenv
when: dev_tools_install_pyenv
- name: Install Pipx
block:
- name: pipx
ansible.builtin.pip:
name: pipx
state: present
extra_args: --user
environment:
PIPX_HOME: '{{ ansible_env.HOME }}/.local/share/pipx'
ansible.builtin.apt:
name: pipx
state: present
lock_timeout: "{{ apt_lock_timeout }}"
become: true
when: dev_tools_install_pipx

0 comments on commit 17c33f4

Please sign in to comment.