From 4b33f2a23785542227bbf1fcdea0849a7a4c3435 Mon Sep 17 00:00:00 2001 From: Viacheslav Borisov Date: Sat, 24 Jan 2026 01:14:08 +0400 Subject: [PATCH] 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. --- .gitignore | 4 +++- scripts/setup-python.sh | 5 ++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 196a9a09..ab24d1ed 100644 --- a/.gitignore +++ b/.gitignore @@ -66,4 +66,6 @@ temp/ exports/* -.agent-builder-sessions/* \ No newline at end of file +.agent-builder-sessions/* + +.venv diff --git a/scripts/setup-python.sh b/scripts/setup-python.sh index 5baf13f9..72c3834e 100755 --- a/scripts/setup-python.sh +++ b/scripts/setup-python.sh @@ -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 ""