Rebuild broken .venv when activate is missing after ensurepip failure.

Half-created venvs often keep bin/python3 without activate; directory existence is not enough.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-07-29 21:37:04 +08:00
parent 467203b61d
commit c425a08a8f
2 changed files with 24 additions and 6 deletions
+8
View File
@@ -5,6 +5,14 @@
---
## 2026-07-29 — 部署:半截 .venv 必须重建(缺 activate
### 变更
1. 判定 venv 可用改为同时检查 `bin/activate` + `bin/python3`(仅有目录或仅有 python 仍会删掉重建)。
---
## 2026-07-29 — 部署:自动安装 python3-venvensurepip
### 变更