From: Georgi Gerganov Date: Tue, 3 Dec 2024 18:29:58 +0000 (+0200) Subject: ci : fix pip env X-Git-Tag: upstream/0.0.1642~101 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=3a47a1eeadebad57d992f91ec04a2689b9bbc2e9;p=pkg%2Fggml%2Fsources%2Fggml ci : fix pip env ggml-ci --- diff --git a/ci/run.sh b/ci/run.sh index ce0e27d3..9833de7f 100644 --- a/ci/run.sh +++ b/ci/run.sh @@ -293,15 +293,24 @@ function gg_sum_yolo { ## main -if [ -z $GG_BUILD_LOW_PERF ]; then +if [ -z ${GG_BUILD_LOW_PERF} ]; then + # Create symlink: ./ggml/models-mnt -> $MNT/models/models-mnt rm -rf ${SRC}/models-mnt - mnt_models=${MNT}/models mkdir -p ${mnt_models} ln -sfn ${mnt_models} ${SRC}/models-mnt + + # Create a fresh python3 venv and enter it + 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 + pip install --editable gguf-py --disable-pip-version-check fi -python3 -m pip install -r ${SRC}/requirements.txt ret=0