]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
ci: add error handling for Python venv creation in run.sh (#10608)
authorWang Qin <redacted>
Sun, 1 Dec 2024 18:11:42 +0000 (10:11 -0800)
committerGitHub <redacted>
Sun, 1 Dec 2024 18:11:42 +0000 (20:11 +0200)
ci/run.sh

index 20610e56009bed32ea431d2d3ec8010361d1132e..abf08a4ff64110e0fa9bc82180b94701086d31a8 100755 (executable)
--- a/ci/run.sh
+++ b/ci/run.sh
@@ -815,7 +815,10 @@ if [ -z ${GG_BUILD_LOW_PERF} ]; then
     ln -sfn ${mnt_models} ${SRC}/models-mnt
 
     # Create a fresh python3 venv and enter it
-    python3 -m venv "$MNT/venv"
+    if ! python3 -m venv "$MNT/venv"; then
+        echo "Error: Failed to create Python virtual environment at $MNT/venv."
+        exit 1
+    fi
     source "$MNT/venv/bin/activate"
 
     pip install -r ${SRC}/requirements.txt --disable-pip-version-check