From: Wang Qin Date: Sun, 1 Dec 2024 18:11:42 +0000 (-0800) Subject: ci: add error handling for Python venv creation in run.sh (#10608) X-Git-Tag: upstream/0.0.4488~252 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=5c7a5aa0c32eb19ce03e178560797db5875d7692;p=pkg%2Fggml%2Fsources%2Fllama.cpp ci: add error handling for Python venv creation in run.sh (#10608) --- diff --git a/ci/run.sh b/ci/run.sh index 20610e56..abf08a4f 100755 --- 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