-
Notifications
You must be signed in to change notification settings - Fork 82
Expand file tree
/
Copy pathsetup.sh
More file actions
35 lines (26 loc) · 932 Bytes
/
setup.sh
File metadata and controls
35 lines (26 loc) · 932 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/bash
set -e
echo "Creating virtual environment..."
if [ ! -d "venv" ]; then
python3.12 -m venv venv
fi
source venv/bin/activate
echo "Setting up VideoSDK Agents..."
echo "📦 Installing dependencies..."
pip install -r requirements.txt
echo "Fixing videosdk namespace..."
PYTHON_PATH=$(python -c "import videosdk; print(videosdk.__file__)" 2>/dev/null || echo "")
if [ -n "$PYTHON_PATH" ]; then
VIDEOSDK_DIR=$(dirname "$PYTHON_PATH")
if ! grep -q "extend_path" "$VIDEOSDK_DIR/__init__.py" 2>/dev/null; then
echo "__path__ = __import__('pkgutil').extend_path(__path__, __name__)" >> "$VIDEOSDK_DIR/__init__.py"
fi
fi
echo "Installing VideoSDK plugins..."
for plugin in videosdk-agents videosdk-plugins/*; do
if [ -d "$plugin" ] && [ -f "$plugin/pyproject.toml" ]; then
echo " Installing $(basename "$plugin")..."
pip install -e "$plugin"
fi
done
echo "Setup complete!"