Skip to content

Commit 62ee69f

Browse files
committed
ci_scripts: add list-packages.sh
Migrate the script from wheel_builder, with no changes. Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com>
1 parent 9dd0568 commit 62ee69f

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

ci_scripts/list-packages.sh

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/bin/bash
2+
3+
# SPDX-FileCopyrightText: 2024 Rivos Inc.
4+
5+
# SPDX-License-Identifier: Apache-2.0
6+
7+
set -e
8+
9+
if [ "$#" -ne 1 ]; then
10+
echo "list-packages name-prefix"
11+
exit 1
12+
fi
13+
14+
apt-get update -qq && apt-get install -qq -y python3 python3-venv
15+
python3 -m venv packages-$1-venv
16+
. packages-$1-venv/bin/activate
17+
python -m pip install --upgrade pip
18+
pip install -r packages.txt
19+
pip list > $1-installed.txt

0 commit comments

Comments
 (0)