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:
parent
68e5915614
commit
7427a71d08
1 changed files with 3 additions and 3 deletions
|
@ -11,14 +11,14 @@
|
||||||
# ignore_errors: yes
|
# ignore_errors: yes
|
||||||
# when: is_raspbian
|
# 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:
|
package:
|
||||||
name:
|
name:
|
||||||
- python2
|
- 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
|
- virtualenv # Provides venv for python2 -- compare python3-venv in scripts/ansible
|
||||||
state: present
|
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.
|
# 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
|
- name: Use pip to pin setuptools to 44 in {{ kalite_venv }} if Raspbian/Debian > 10 or Ubuntu > 19
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue