Skip to content

Commit e1e8f6d

Browse files
committed
ci: install python packages using Deb packages
As stated in the error message when using 'pip install': > To install Python packages system-wide, try apt install > python3-xyz, where xyz is the package you are trying to > install. Signed-off-by: Mathieu Tortuyaux <[email protected]>
1 parent 11e1bbd commit e1e8f6d

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

scripts/ci-conformance.sh

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,11 @@ cleanup() {
4545
}
4646
trap cleanup EXIT
4747

48-
# Ensure that python3-pip is installed.
4948
apt-get update -y
50-
apt-get install -y python3-pip
49+
# Install requests module explicitly for HTTP calls.
50+
apt-get install -y python3-requests
5151
rm -rf /var/lib/apt/lists/*
5252

53-
# Install/upgrade pip and requests module explicitly for HTTP calls.
54-
python3 -m pip install --upgrade pip requests
55-
5653
# If BOSKOS_HOST is set then acquire a resource of type ${RESOURCE_TYPE} from Boskos.
5754
if [ -n "${BOSKOS_HOST:-}" ]; then
5855
# Check out the account from Boskos and store the produced environment

scripts/ci-e2e.sh

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,11 @@ cleanup() {
4646
}
4747
trap cleanup EXIT
4848

49-
# Ensure that python3-pip is installed.
5049
apt-get update -y
51-
apt-get install -y python3-pip
50+
# Install requests module explicitly for HTTP calls.
51+
apt-get install -y python3-requests
5252
rm -rf /var/lib/apt/lists/*
5353

54-
# Install/upgrade pip and requests module explicitly for HTTP calls.
55-
python3 -m pip install --upgrade pip requests
56-
5754
# If BOSKOS_HOST is set then acquire a resource of type ${RESOURCE_TYPE} from Boskos.
5855
if [ -n "${BOSKOS_HOST:-}" ]; then
5956
# Check out the account from Boskos and store the produced environment

0 commit comments

Comments
 (0)