feat: add virtual environment support for Python services
- Update supervisord.conf to use venv Python executables for orchestrator and webdav-sync - Add virtual environment setup to arty.yml setup/python-env script - Isolate dependencies for webdav-sync, model-orchestrator, and vllm services - Fixes dependency conflicts between services (pydantic versions) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
25
arty.yml
25
arty.yml
@@ -188,16 +188,31 @@ scripts:
|
|||||||
echo "⚠ Warning: $AI_ROOT/core/requirements.txt not found"
|
echo "⚠ Warning: $AI_ROOT/core/requirements.txt not found"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Install vLLM dependencies
|
# Create virtual environments for services with isolated dependencies
|
||||||
echo "Installing vLLM dependencies..."
|
echo ""
|
||||||
|
echo "Creating virtual environments for services..."
|
||||||
|
|
||||||
|
# WebDAV sync service
|
||||||
|
if [ -f "webdav-sync/requirements.txt" ]; then
|
||||||
|
echo " - webdav-sync..."
|
||||||
|
cd webdav-sync && python3 -m venv venv && source venv/bin/activate && pip install -r requirements.txt && deactivate && cd ..
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Model orchestrator service
|
||||||
|
if [ -f "model-orchestrator/requirements.txt" ]; then
|
||||||
|
echo " - model-orchestrator..."
|
||||||
|
cd model-orchestrator && python3 -m venv venv && source venv/bin/activate && pip install -r requirements.txt && deactivate && cd ..
|
||||||
|
fi
|
||||||
|
|
||||||
|
# vLLM service (may require more memory)
|
||||||
if [ -f "vllm/requirements.txt" ]; then
|
if [ -f "vllm/requirements.txt" ]; then
|
||||||
sudo pip3 install -r vllm/requirements.txt
|
echo " - vllm (this may take a while)..."
|
||||||
else
|
cd vllm && python3 -m venv venv && source venv/bin/activate && pip install -r requirements.txt && deactivate && cd ..
|
||||||
echo "⚠ Warning: vllm/requirements.txt not found"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "✓ Python environment configured successfully"
|
echo "✓ Python environment configured successfully"
|
||||||
|
echo " Virtual environments created for: webdav-sync, model-orchestrator, vllm"
|
||||||
|
|
||||||
setup/comfyui-base: |
|
setup/comfyui-base: |
|
||||||
echo "========================================="
|
echo "========================================="
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ stopwaitsecs=30
|
|||||||
|
|
||||||
# AI Model Orchestrator
|
# AI Model Orchestrator
|
||||||
[program:orchestrator]
|
[program:orchestrator]
|
||||||
command=python3 model-orchestrator/orchestrator_subprocess.py
|
command=model-orchestrator/venv/bin/python model-orchestrator/orchestrator_subprocess.py
|
||||||
directory=.
|
directory=.
|
||||||
autostart=false
|
autostart=false
|
||||||
autorestart=true
|
autorestart=true
|
||||||
@@ -58,7 +58,7 @@ stopwaitsecs=30
|
|||||||
|
|
||||||
# ComfyUI WebDAV Sync Service
|
# ComfyUI WebDAV Sync Service
|
||||||
[program:webdav-sync]
|
[program:webdav-sync]
|
||||||
command=python3 webdav_sync.py
|
command=webdav-sync/venv/bin/python webdav_sync.py
|
||||||
directory=webdav-sync
|
directory=webdav-sync
|
||||||
autostart=true
|
autostart=true
|
||||||
autorestart=true
|
autorestart=true
|
||||||
|
|||||||
Reference in New Issue
Block a user