fix python deps setup

This commit is contained in:
Gabriel Augendre 2025-03-12 23:17:46 +01:00
parent fef296cbbd
commit 520fda6daa

View file

@ -8,10 +8,12 @@
ansible.builtin.apt: ansible.builtin.apt:
pkg: pkg:
- python3-venv - python3-venv
- bat
- name: Setup venv - name: Setup venv
# github3.py required by the goatcounter playbook # github3.py required by the goatcounter playbook
ansible.builtin.shell: | ansible.builtin.shell: |
if [ -x /tmp/ansible/bin/python ]; then exit 123; fi if [ -x /tmp/ansible/bin/python ] && [ -x /tmp/ansible/bin/pip ] ; then exit 123; fi
rm -rf /tmp/ansible
/usr/bin/python3 -m venv /tmp/ansible /usr/bin/python3 -m venv /tmp/ansible
/tmp/ansible/bin/pip install --upgrade 'github3.py >= 1.0.0a3' /tmp/ansible/bin/pip install --upgrade 'github3.py >= 1.0.0a3'
args: args: