diff --git a/computer-use-demo/setup.sh b/computer-use-demo/setup.sh index bd966cae..5bdc1d07 100755 --- a/computer-use-demo/setup.sh +++ b/computer-use-demo/setup.sh @@ -14,8 +14,16 @@ if ! command -v cargo &> /dev/null; then exit 1 fi +# Create virtual environment python3 -m venv .venv -source .venv/bin/activate + +# Use the appropriate activation script for the OS +if [[ "$OSTYPE" == "msys" || "$OSTYPE" == "win32" ]]; then + source .venv/Scripts/activate # Windows activation path +else + source .venv/bin/activate # Linux/macOS activation path +fi + pip install --upgrade pip pip install -r dev-requirements.txt pre-commit install