Retry pip installs during deploy to tolerate flaky mirrors.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-07-17 16:02:51 +08:00
parent 572239f69c
commit 041692a763
2 changed files with 3 additions and 2 deletions
+1
View File
@@ -217,6 +217,7 @@ pip_install_requirements() {
[[ -f "${req_file}" ]] || die "缺少依赖文件: ${req_file}"
"${pip_bin}" install -r "${req_file}" \
--disable-pip-version-check \
--retries 5 \
--progress-bar "${bar}"
echo " ${label}安装完成"
}