Skip to content

Commit 24dabef

Browse files
committed
chore: Use python3 -m venv instead of virtualenv
1 parent a7e3018 commit 24dabef

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

‎roles/python3/tasks/main.yml‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,42 +7,42 @@
77
state: directory
88
mode: "0755"
99

10-
- name: Install virtualenv via pip3
11-
pip:
12-
name: virtualenv
13-
executable: pip3
14-
1510
- name: Install Ansible Lint
1611
pip:
1712
name: ansible, ansible-lint
1813
virtualenv: "{{ ansible_env.HOME }}/python_projects"
14+
virtualenv_command: python3 -m venv
1915
environment:
2016
PATH: "{{ ansible_env.PATH }}:{{ ansible_env.HOME }}/.local/bin"
2117

2218
- name: Install Sphinx
2319
pip:
2420
name: sphinx, restview, rst2beamer3k
2521
virtualenv: "{{ ansible_env.HOME }}/python_projects"
22+
virtualenv_command: python3 -m venv
2623
environment:
2724
PATH: "{{ ansible_env.PATH }}:{{ ansible_env.HOME }}/.local/bin"
2825

2926
- name: Install Meson Build
3027
pip:
3128
name: meson
3229
virtualenv: "{{ ansible_env.HOME }}/python_projects"
30+
virtualenv_command: python3 -m venv
3331
environment:
3432
PATH: "{{ ansible_env.PATH }}:{{ ansible_env.HOME }}/.local/bin"
3533

3634
- name: Install IPython
3735
pip:
3836
name: ipython
3937
virtualenv: "{{ ansible_env.HOME }}/python_projects"
38+
virtualenv_command: python3 -m venv
4039
environment:
4140
PATH: "{{ ansible_env.PATH }}:{{ ansible_env.HOME }}/.local/bin"
4241

4342
- name: Install Black
4443
pip:
4544
name: black
4645
virtualenv: "{{ ansible_env.HOME }}/python_projects"
46+
virtualenv_command: python3 -m venv
4747
environment:
4848
PATH: "{{ ansible_env.PATH }}:{{ ansible_env.HOME }}/.local/bin"

‎roles/utils/tasks/main.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
- name: Miscellaneous utils
44
apt:
5-
name: curl, debianutils, findutils
5+
name: curl, debianutils, findutils, python3-venv
66
state: present
77

88
- name: Ensure archving tools are present

0 commit comments

Comments
 (0)