From 7427a71d089fe6d251f9b84ae2d15087e037df54 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 29 Jul 2021 11:37:07 -0400 Subject: [PATCH] kalite/tasks/install.yml: Mandate virtualenv (for Python 2) --- roles/kalite/tasks/install.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/roles/kalite/tasks/install.yml b/roles/kalite/tasks/install.yml index 11e4dd063..132c27022 100644 --- a/roles/kalite/tasks/install.yml +++ b/roles/kalite/tasks/install.yml @@ -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