# 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"
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
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