Fix ensure-pip test on Debian Buster
Our wheel mirrors contain pluggy-1.0.0-py2.py3-none-any.whl which pip sees as a sign to install it under py2.7 although the wheel is only meant for >=py3.6. Add a cap to the test command to install some older version instead. Signed-off-by: Dr. Jens Harbott <harbott@osism.tech> Change-Id: I32d2c29988f92124e7dcdf462b2dd07cfd68b4d2
This commit is contained in:
parent
c20a2435a6
commit
024f377921
@ -38,6 +38,7 @@
|
||||
|
||||
- name: Test virtualenv
|
||||
# NOTE(ianw) 2022-02-03 : not supported on 9-stream, see inline comments
|
||||
# NOTE(frickler) 2022-03-01 : pin pluggy so as to work on Debian Buster
|
||||
when: not (ansible_facts['distribution'] == 'CentOS' and ansible_facts['distribution_major_version']|int >= 9)
|
||||
block:
|
||||
# ensure-virtualenv
|
||||
@ -50,7 +51,7 @@
|
||||
tmp_venv=$(mktemp -d -t venv-XXXXXXXXXX)
|
||||
trap "rm -rf $tmp_venv" EXIT
|
||||
virtualenv $tmp_venv
|
||||
$tmp_venv/bin/pip install tox
|
||||
$tmp_venv/bin/pip install tox "pluggy<1"
|
||||
failed_when: false
|
||||
register: _virtualenv_sanity
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user