Skip to content

Commit 91b4c19

Browse files
committed
ci_scripts: add list-packages.sh
Migrate the script from wheel_builder, adding a new RISE copyright and a short description in the process. Also make sure that it only tries to install binary wheels, so that we don't try and build them from scratch during simple checks. Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
1 parent becac1b commit 91b4c19

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

ci_scripts/list-packages.sh

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#!/bin/bash
2+
3+
# SPDX-FileCopyrightText: 2024 Rivos Inc.
4+
# SPDX-FileCopyrightText: 2026 The RISE Project
5+
6+
# SPDX-License-Identifier: Apache-2.0
7+
#
8+
# This script is originally from:
9+
#
10+
# https://gitlab.com/riseproject/python/wheel_builder/-/blob/main/ci_scripts/list-packages.sh
11+
#
12+
# Its purpose is to test installation of each package RISE supports from the
13+
# registry, then list the packages which were actually installed with their
14+
# versions so that any uninstallable packages can be identified.
15+
16+
set -e
17+
18+
if [ "$#" -ne 1 ]; then
19+
echo "list-packages name-prefix"
20+
exit 1
21+
fi
22+
23+
apt-get update -qq && apt-get install -qq -y python3 python3-venv
24+
python3 -m venv packages-$1-venv
25+
. packages-$1-venv/bin/activate
26+
python -m pip install --upgrade pip
27+
pip install --only-binary=:all: -r packages.txt
28+
pip list > $1-installed.txt

0 commit comments

Comments
 (0)