use stdlib to create the virtualenv (#62984)

This commit is contained in:
Emmanuel Cazenave 2022-03-21 13:00:16 +01:00
parent c9aef7015e
commit 16aa6ae786
1 changed files with 2 additions and 2 deletions

View File

@ -27,12 +27,12 @@
- python3-pip
- python3-psycopg2
- python3-uwsgidecorators
- python3-venv
- rabbitmq-server
- sassc
- supervisor
- uwsgi
- uwsgi-plugin-python3
- virtualenv
state: present
become: yes
@ -56,7 +56,7 @@
name: django
version: "{{django_version}}"
virtualenv: "{{venv_py3}}"
virtualenv_python: "python3"
virtualenv_command: "python3 -m venv"
- name: guess virtualenv python3 site-packages
command: "{{venv_py3_python}} -c 'from distutils.sysconfig import get_python_lib; print(get_python_lib())'"