blob: 170cd990edf298c12b6dfba9f4af25976661849f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#!/bin/bash
set -euxo pipefail
# Used by Zuul CI to perform extra bootstrapping
# sudo used only because currently zuul default tox_executable=tox instead of
# "python3 -m tox"
# https://zuul-ci.org/docs/zuul-jobs/python-roles.html#rolevar-ensure-tox.tox_executable
# Install pip if not already install on the system
python3 -m pip --version || {
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
sudo python3 get-pip.py
}
# Workaround until ensure-tox will allow upgrades
# https://review.opendev.org/#/c/690057/
sudo python3 -m pip install -U tox
|