Show pip progress bars during deploy instead of silent installs.

Replace -q with --progress-bar so dependency installation visibly continues in setup_env and update flows.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-07-12 12:42:31 +08:00
parent 96b5096284
commit 337a6bc54f
3 changed files with 44 additions and 11 deletions
+6 -6
View File
@@ -19,6 +19,8 @@ DEPLOY_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
REPO_ROOT="$(cd "${DEPLOY_DIR}/.." && pwd)"
REQ_FILE="${REPO_ROOT}/requirements.txt"
HUB_REQ="${REPO_ROOT}/manual_trading_hub/requirements.txt"
# shellcheck source=lib/common.sh
source "${DEPLOY_DIR}/lib/common.sh"
ONLY="all"
SKIP_PM2=0
@@ -177,10 +179,8 @@ setup_monitor() {
step "${dir_name}"
cd "${proj}"
create_project_venv "${PY}"
echo " 升级 pip ..."
.venv/bin/python -m pip install -U pip setuptools wheel -q
echo " 安装依赖 ..."
.venv/bin/pip install -r "${REQ_FILE}" -q
pip_upgrade_tools ".venv/bin/pip"
pip_install_requirements ".venv/bin/pip" "${REQ_FILE}" "交易所共用依赖"
if [[ "${SKIP_ENV_COPY}" -eq 0 ]]; then
if [[ -f .env.example && ! -f .env ]]; then
cp -n .env.example .env 2>/dev/null || cp .env.example .env
@@ -204,9 +204,9 @@ setup_hub() {
step "manual_trading_hub"
cd "${proj}"
create_project_venv "${PY}"
.venv/bin/python -m pip install -U pip setuptools wheel -q
pip_upgrade_tools ".venv/bin/pip"
if [[ -f "${HUB_REQ}" ]]; then
.venv/bin/pip install -r "${HUB_REQ}" -q
pip_install_requirements ".venv/bin/pip" "${HUB_REQ}" "中控依赖"
fi
if [[ "${SKIP_ENV_COPY}" -eq 0 && -f .env.example && ! -f .env ]]; then
cp -n .env.example .env 2>/dev/null || cp .env.example .env