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

wheel issue

This commit is contained in:
Jerry Vonau 2020-04-02 07:44:21 -05:00
parent c19e96464b
commit c0e75226ca
2 changed files with 14 additions and 6 deletions

View file

@ -13,18 +13,26 @@
- name: Install python2, if Raspbian/Debian > 10 or Ubuntu > 19
package:
name: python2
name:
- python2
- python-setuptools # provides setuptools-44 last version compatible with python2
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)
# 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 older working versions in {{ kalite_venv }} if Raspbian/Debian > 10 or Ubuntu > 19
- name: Put wheel file in place if missing
copy:
force: no
src: roles/kalite/files/ipaddress-0.0.0-py2.py3-none-any.whl
dest: /usr/share/python-wheels/ipaddress-0.0.0-py2.py3-none-any.whl
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-04-02: python-pip-whl 20.0.2-2 is missing ipaddress-0.0.0-py2.py3-none-any.whl
# https://bugs.launchpad.net/ubuntu/+source/python-pip/+bug/1869247
- name: Use pip to pin setuptools to 44 in {{ kalite_venv }} if Raspbian/Debian > 10 or Ubuntu > 19
pip:
name:
- ipaddr
- pip<20
- setuptools<45
- wheel<34
- setuptools==44
virtualenv: "{{ kalite_venv }}" # /usr/local/kalite/venv
virtualenv_site_packages: no
virtualenv_command: /usr/bin/virtualenv