NFVBENCH-195: Work around a fatal error encountered with the latest pip release,... 15/71615/2
authorPierrick Louin <pierrick.louin@orange.com>
Thu, 3 Dec 2020 22:18:41 +0000 (22:18 +0000)
committerCédric Ollivier <cedric.ollivier@orange.com>
Tue, 5 Jan 2021 11:20:27 +0000 (12:20 +0100)
Signed-off-by: Pierrick Louin <pierrick.louin@orange.com>
Change-Id: I7dbfa076360be0c62a1b9893070f059dc2566842

docker/Dockerfile
tox.ini

index d871acc..990f07e 100644 (file)
@@ -35,7 +35,7 @@ RUN apt-get update && apt-get install -y \
        && cp -a /opt/trex/$TREX_VER/automation/trex_control_plane/interactive/trex /usr/local/lib/python3.6/dist-packages/ \
        && rm -rf /opt/trex/$TREX_VER/automation/trex_control_plane/interactive/trex \
        && wget https://bootstrap.pypa.io/get-pip.py \
-       && python3 get-pip.py \
+       && python3 get-pip.py pip==20.2.4 \
        && pip3 install -U pbr \
        && pip3 install -U setuptools \
        && cd / \
diff --git a/tox.ini b/tox.ini
index 6d12050..3cf573e 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -4,6 +4,7 @@ envlist = py36,pep8,lint,docs,docs-linkcheck
 skipsdist = True
 
 [testenv]
+pip_version = pip==20.2.4
 usedevelop = True
 install_command = pip install -U {opts} {packages}
 setenv =