From 658065fe17d080c7cceb36e617559977e55d50fd Mon Sep 17 00:00:00 2001 From: James Kwon <96548424+james03160927@users.noreply.github.com> Date: Tue, 7 Jan 2025 22:08:36 -0500 Subject: [PATCH] Pin dependency (#131) Co-authored-by: James Kwon <96548424+hongil0316@users.noreply.github.com> --- node-pack-extract/provisioning.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/node-pack-extract/provisioning.sh b/node-pack-extract/provisioning.sh index 7b4a21f..73f62f8 100644 --- a/node-pack-extract/provisioning.sh +++ b/node-pack-extract/provisioning.sh @@ -1,6 +1,14 @@ #!/bin/bash set -e +source /opt/environments/python/comfyui/bin/activate + +echo "==========================" +echo "=== Pinning Dependencies ===" +echo "==========================" + +pip install "numpy<2" + echo "===========================================" echo "=== Downloading the custom node archive ===" echo "===========================================" @@ -14,7 +22,6 @@ echo "=== Installing the custom node ===" echo "==================================" unzip "${CUSTOM_NODE_NAME}.zip" -d "$CUSTOM_NODE_NAME" cd "$CUSTOM_NODE_NAME" -source /opt/environments/python/comfyui/bin/activate if [ -f "requirements.txt" ]; then echo "=== installing dependencies from requirements.txt" pip install -r requirements.txt