feat: Add .venv to .gitignore and improve script error handling

Adds the `.venv` directory to the `.gitignore` file to prevent accidental commits.

Also, enhances the `scripts/setup-python.sh` script to include error handling for the `pip install` command, providing a more informative message if the upgrade fails.
This commit is contained in:
Viacheslav Borisov
2026-01-24 01:14:08 +04:00
parent b21c29b56a
commit 4b33f2a237
2 changed files with 7 additions and 2 deletions
+3 -1
View File
@@ -66,4 +66,6 @@ temp/
exports/*
.agent-builder-sessions/*
.agent-builder-sessions/*
.venv
+4 -1
View File
@@ -72,7 +72,10 @@ echo ""
# Upgrade pip, setuptools, and wheel
echo "Upgrading pip, setuptools, and wheel..."
$PYTHON_CMD -m pip install --upgrade pip setuptools wheel > /dev/null 2>&1
if ! $PYTHON_CMD -m pip install --upgrade pip setuptools wheel; then
echo "Error: Failed to upgrade pip. Please check your python/venv configuration."
exit 1
fi
echo -e "${GREEN}${NC} Core packages upgraded"
echo ""