Merge "Setting required vars for python 3 - rhel 8 jobs"

This commit is contained in:
Zuul 2019-05-21 22:11:23 +00:00 committed by Gerrit Code Review
commit 579e70c17b
1 changed files with 2 additions and 1 deletions

View File

@ -45,7 +45,8 @@ $(python_cmd) -m pip --version || \
(curl -s "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py"; sudo $(python_cmd) get-pip.py)
if [ "$(python_cmd)" == "python3" ]; then
sudo $(package_manager) install python3-setuptools python3-requests python3-urllib3 python3-PyYAML shyaml
sudo $(package_manager) install python3-setuptools python3-requests python3-urllib3 python3-PyYAML
sudo $(package_manager) install shyaml || true # install when available
else
sudo $(package_manager) install python2-setuptools python2-requests python-requests python-urllib3 PyYAML
fi