1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

kalite/tasks/install.yml: Mandate virtualenv (for Python 2)

This commit is contained in:
root 2021-07-29 11:37:07 -04:00
parent 68e5915614
commit 7427a71d08

View file

@ -11,14 +11,14 @@
# ignore_errors: yes
# when: is_raspbian
- name: Install python2, if Raspbian/Debian > 10 or Ubuntu > 19
- name: 'Install packages: python2, python-setuptools, virtualenv (for Python 2)' # if Raspbian/Debian > 10 or Ubuntu > 19
package:
name:
- python2
- python-setuptools # Provides setuptools-44 (last version compatible with python2)
- python-setuptools # Provides setuptools-44 on recent OS's (last version compatible with python2)
- virtualenv # Provides venv for python2 -- compare python3-venv in scripts/ansible
state: present
when: not (is_debian_9 or is_debian_10 or is_ubuntu_16 or is_ubuntu_17 or is_ubuntu_18 or is_ubuntu_19)
#when: not (is_debian_9 or is_debian_10 or is_ubuntu_16 or is_ubuntu_17 or is_ubuntu_18 or is_ubuntu_19)
# 2020-03-31: Testing for {is_raspbian_9, is_raspbian_10} is not currently nec, as testing for {is_debian_9, is_debian_10} covers that already.
- name: Use pip to pin setuptools to 44 in {{ kalite_venv }} if Raspbian/Debian > 10 or Ubuntu > 19