Allow for multiple forbidden paths
[releng/builder.git] / jjb / integration / integration-install-robotframework.sh
index e91454dcb03a361859b4d8e418e13ef7b2522a13..0a814db6cdfd883963dad933a38f35cd23265bb4 100644 (file)
@@ -16,7 +16,7 @@ echo ROBOT_VENV="${ROBOT_VENV}" >> "${WORKSPACE}/env.properties"
 # The --system-site-packages parameter allows us to pick up system level
 # installed packages. This allows us to bake matplotlib which takes very long
 # to install into the image.
-virtualenv -p python3 --system-site-packages "${ROBOT_VENV}"
+python3 -m venv "${ROBOT_VENV}"
 # shellcheck disable=SC1090
 source "${ROBOT_VENV}/bin/activate"
 
@@ -28,14 +28,13 @@ python -m pip install --upgrade pip
 echo "Installing Python Requirements"
 cat << 'EOF' > "requirements.txt"
 docker-py
-importlib
 ipaddr
 netaddr
 netifaces
 pyhocon
 requests
 robotframework-httplibrary
-robotframework-requests
+robotframework-requests==0.7.2
 robotframework-selenium2library
 robotframework-sshlibrary==3.1.1
 scapy
@@ -63,5 +62,9 @@ jsonpatch
 odltools
 EOF
 python -m pip install -r requirements.txt
+# Todo: Workaround needs pinned version of odltool to the latest because of the
+# update in the dependency resolver in pip 21.3.
+# Ref: https://github.com/pypa/pip/issues/9215
+pip install odltools==0.1.34
 odltools -V
 pip freeze