Detect ensurepip and auto-install python3-venv in one-click deploy.

Avoid false OK on bare python3; repair broken .venv; re-check deps after git pull.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-07-29 21:33:18 +08:00
parent 9ec0cacf45
commit 467203b61d
3 changed files with 42 additions and 6 deletions
+9
View File
@@ -5,6 +5,15 @@
---
## 2026-07-29 — 部署:自动安装 python3-venvensurepip
### 变更
1. Python 就绪判定改为检测 `ensurepip`(避免仅有 python3 却误报 OK)。
2. 一键部署自动安装 `python3-venv` / `python3.X-venv`pull 后二次检测;损坏的 `.venv` 自动重建。
---
## 2026-07-29 — 部署:等待 apt 锁(unattended-upgrades
### 变更