mirror of
https://github.com/iiab/iiab.git
synced 2025-02-14 20:22:08 +00:00
Merge pull request #2321 from jvonau/wheel_issue
wheel issue [for KA Lite, relating to python2 etc]
This commit is contained in:
commit
15229ce16d
1 changed files with 13 additions and 6 deletions
|
@ -13,18 +13,25 @@
|
|||
|
||||
- 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
|
||||
get_url:
|
||||
url: http://d.iiab.io/packages/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
|
||||
|
|
Loading…
Reference in a new issue