Skip to content

Commit

Permalink
ubuntu fix for pip v2
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeeq committed Nov 5, 2024
1 parent 7e30ece commit 912b159
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
1 change: 1 addition & 0 deletions Dockerfile-ubuntu
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ FROM ubuntu:24.04

# ENV container docker
ENV UBUNTU_USERNAME=mikee
ENV DEBIAN_FRONTEND=noninteractiv

RUN apt-get update \
&& apt-get upgrade -y \
Expand Down
4 changes: 2 additions & 2 deletions roles/apps/docker/tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
ignore_errors: true

- name: Remove old deps before installing docker
package:
dnf:
name: "{{ pkgs }}"
state: absent
when: docker_check.rc != 0
Expand Down Expand Up @@ -36,7 +36,7 @@
when: docker_repo_check.rc != 0

- name: Install Docker
package:
dnf:
name: "{{ pkgs }}"
state: present
vars:
Expand Down
8 changes: 4 additions & 4 deletions roles/desktop/machines/wsl/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@
upgrade: dist
update_cache: yes

- name: Install python3.11 package
apt:
name: "python3.11"
state: present
# - name: Install python3.11 package
# apt:
# name: "python3.11"
# state: present

- name: Install packages
apt:
Expand Down
5 changes: 5 additions & 0 deletions roles/pkg_mgmt/pip/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
---
- name: Remove all system-wide errors in pip
shell: rm -rfv /usr/lib/*/EXTERNALLY-MANAGED
register: pip_ext_managed
changed_when: pip_ext_managed.stdout != ""

- name: Install PIP virtualenv
pip:
name: "virtualenv"
Expand Down

0 comments on commit 912b159

Please sign in to comment.