Suppress pip warnings during package upgrade/install

This commit is contained in:
Lloyd
2026-01-12 22:17:24 +00:00
parent 81aaeb269c
commit 5bdea1132c
+6
View File
@@ -294,6 +294,9 @@ EOF
SCRIPT_DIR="$(dirname "$0")"
cd "$SCRIPT_DIR"
# Suppress pip root user warnings
export PIP_ROOT_USER_ACTION=ignore
# Calculate version from git for setuptools_scm
if [ -d .git ]; then
git fetch --tags 2>/dev/null || true
@@ -459,6 +462,9 @@ EOF
SCRIPT_DIR="$(dirname "$0")"
cd "$SCRIPT_DIR"
# Suppress pip root user warnings
export PIP_ROOT_USER_ACTION=ignore
# First, upgrade the package and dependencies (only updates what needs updating)
if python3 -m pip install --break-system-packages --upgrade --no-cache-dir .; then
echo ""