From 97a6fd5a49a64027aa3a0231e9ee77b51951f7ad Mon Sep 17 00:00:00 2001 From: Camila Alvarez Date: Wed, 21 May 2025 12:07:46 -0400 Subject: [PATCH] fix(dependencias): Install dependencies on rebuild Instead of asking the user to install kernelci-core dependencies before running the script we create a virtualenv during the rebuild process. We then install kernel-ci core dependencies before using the kci tool. Signed-off-by: Camila Alvarez --- localinstall/1-rebuild_all.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/localinstall/1-rebuild_all.sh b/localinstall/1-rebuild_all.sh index 7ad89826..3a05ef24 100755 --- a/localinstall/1-rebuild_all.sh +++ b/localinstall/1-rebuild_all.sh @@ -64,6 +64,11 @@ if [ -n "$KCI_CACHE" ]; then fi fi +# install virtualenv if necessary +pip install virtualenv +virtualenv .venv +source .venv/bin/activate + # build docker images # purge docker build cache with confirmation echo "Purge docker build cache" @@ -80,6 +85,7 @@ pipeline_rev=$(git show --pretty=format:%H -s origin/$KCI_PIPELINE_BRANCH) pipeline_url=$(git remote get-url origin) cd .. cd kernelci-core +pip install -r requirements.txt echo Retrieve Core revision and branch core_rev=$(git show --pretty=format:%H -s origin/$KCI_CORE_BRANCH) core_url=$(git remote get-url origin)