Skip to content

Commit

Permalink
ci: install python packages using Deb packages
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
tormath1 committed Oct 10, 2023
1 parent 11e1bbd commit 01146f0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
6 changes: 2 additions & 4 deletions scripts/ci-conformance.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,11 @@ cleanup() {
}
trap cleanup EXIT

# Ensure that python3-pip is installed.
apt-get update -y
apt-get install -y python3-pip
rm -rf /var/lib/apt/lists/*

# Install/upgrade pip and requests module explicitly for HTTP calls.
python3 -m pip install --upgrade pip requests
# Install requests module explicitly for HTTP calls.
apt-get install -y python3-requests

# If BOSKOS_HOST is set then acquire a resource of type ${RESOURCE_TYPE} from Boskos.
if [ -n "${BOSKOS_HOST:-}" ]; then
Expand Down
6 changes: 2 additions & 4 deletions scripts/ci-e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,11 @@ cleanup() {
}
trap cleanup EXIT

# Ensure that python3-pip is installed.
apt-get update -y
apt-get install -y python3-pip
rm -rf /var/lib/apt/lists/*

# Install/upgrade pip and requests module explicitly for HTTP calls.
python3 -m pip install --upgrade pip requests
# Install requests module explicitly for HTTP calls.
apt-get install -y python3-requests

# If BOSKOS_HOST is set then acquire a resource of type ${RESOURCE_TYPE} from Boskos.
if [ -n "${BOSKOS_HOST:-}" ]; then
Expand Down

0 comments on commit 01146f0

Please sign in to comment.