From 572e3f0814eef7a93a9e086536698e58ece08263 Mon Sep 17 00:00:00 2001 From: "patchback[bot]" <45432694+patchback[bot]@users.noreply.github.com> Date: Wed, 30 Sep 2020 10:24:22 +0200 Subject: [PATCH] Fix failing FreeBSD CI (#1010) (#1011) * Print Python and pip version. * Try a newer setuptools. * Dump more info. * Try to upgrade setuptools outside the venv. * pip36 -> pip3 (cherry picked from commit 75d18948669f1a6814a34c82b12eed42b256ec29) Co-authored-by: Felix Fontein --- .../targets/inventory_kubevirt/runme.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tests/integration/targets/inventory_kubevirt/runme.sh b/tests/integration/targets/inventory_kubevirt/runme.sh index 2a10fb8798..21517d5b09 100755 --- a/tests/integration/targets/inventory_kubevirt/runme.sh +++ b/tests/integration/targets/inventory_kubevirt/runme.sh @@ -8,7 +8,21 @@ fi set -eux +uname -a +if [[ $(uname -a) =~ FreeBSD\ 12\.0-RELEASE ]] + then + # On FreeBSD 12.0 images, upgrade setuptools to avoid error with multidict + # This is a bug in pip, which happens because the old setuptools from outside + # the venv leaks into the venv (https://github.com/pypa/pip/issues/6264). + # Since it is not fixed in latest pip (which is available in the venv), we + # need to upgrade setuptools outside the venv. + pip3 install --upgrade setuptools +fi + source virtualenv.sh +python --version +pip --version +pip show setuptools pip install openshift -c constraints.txt ./server.py &