]> git.djapps.eu Git - pkg/ggml/sources/ggml/commitdiff
ci : fix pip env
authorGeorgi Gerganov <redacted>
Tue, 3 Dec 2024 18:29:58 +0000 (20:29 +0200)
committerGeorgi Gerganov <redacted>
Tue, 3 Dec 2024 19:05:37 +0000 (21:05 +0200)
ggml-ci

ci/run.sh

index ce0e27d33d3513d5ae9839931b7b08ca8c44d4ee..9833de7f0608030a0ee6d305fd7164c2b8b24cf5 100644 (file)
--- 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