fix: 消除 get-pip.py 内部 pip 的 root 警告

This commit is contained in:
tian 2026-07-24 09:42:50 +08:00
parent 772af08a1f
commit abebcd3cfa

View File

@ -60,7 +60,7 @@ if [ -d "$INSTALL_DIR/deps" ] && ls "$INSTALL_DIR/deps"/*.whl >/dev/null 2>&1; t
# 先确保 pip3 可用(离线安装)
if ! command -v pip3 &>/dev/null; then
if [ -f "$INSTALL_DIR/deps/get-pip.py" ]; then
python3 "$INSTALL_DIR/deps/get-pip.py" --no-index --find-links="$INSTALL_DIR/deps/" --no-setuptools --no-wheel 2>&1
PIP_ROOT_USER_ACTION=ignore python3 "$INSTALL_DIR/deps/get-pip.py" --no-index --find-links="$INSTALL_DIR/deps/" --no-setuptools --no-wheel 2>&1
fi
fi
if pip3 install --force-reinstall --root-user-action=ignore "$INSTALL_DIR"/deps/*.whl 2>&1; then