Skip to content

feat: v3.0.3 installer refactor and shared env#1

Closed
doomsday616 wants to merge 1 commit into
feat/v3.0.2-i18n-and-bugfixesfrom
feat/v3.0.3-installer-refactor-pr
Closed

feat: v3.0.3 installer refactor and shared env#1
doomsday616 wants to merge 1 commit into
feat/v3.0.2-i18n-and-bugfixesfrom
feat/v3.0.3-installer-refactor-pr

Conversation

@doomsday616

Copy link
Copy Markdown
Owner

English:
This is a stacked PR on top of feat/v3.0.2-i18n-and-bugfixes / upstream PR Huanshere#576.

Changes:

  • Bump version metadata to v3.0.3.
  • Add installer.py, a stage-based, resumable installer with health checks.
  • Refactor setup_env.py to create/reuse local or shared uv virtual environments and delegate installs to installer.py.
  • Refactor OneKeyStart.bat to prefer a shared venv, run pre-launch checks, repair incomplete/outdated environments, and show colored status output.
  • Keep install.py as a backward-compatible wrapper.
  • Relax the spaCy patch pin to avoid brittle mirror/platform resolution failures.
  • Add WhisperX local-model fallback: if project _model_cache is incomplete, use the global HuggingFace cache instead of failing on a half-downloaded cache.

Verification:

  • python -m py_compile installer.py setup_env.py install.py core/asr_backend/whisperX_local.py
  • python installer.py --check
  • OneKeyStart.bat --check-only
  • setup_env.py --path <temp-venv> --skip-install --yes
  • Manual WhisperX model-load check against global HuggingFace cache.

中文:
这是基于 feat/v3.0.2-i18n-and-bugfixes / 上游 PR Huanshere#576 的 stacked PR。

改动:

  • 版本元数据升级到 v3.0.3。
  • 新增分阶段、可重复运行的 installer.py,并加入环境健康检查。
  • 重构 setup_env.py,支持本地/共享 uv 虚拟环境,安装逻辑交给 installer.py
  • 重构 OneKeyStart.bat,优先使用共享 venv,启动前检查环境,缺失或过期时自动修复,并加入彩色状态输出。
  • install.py 保留为兼容入口。
  • 放宽 spaCy patch 版本约束,避免镜像或平台找不到精确 patch 版本导致安装失败。
  • 修复 WhisperX 本地模型缓存问题:项目 _model_cache 不完整时自动回退到全局 HuggingFace 缓存。

English:
- Add stage-based installer.py with resumable dependency setup and health checks
- Support shared uv venv via setup_env.py and OneKeyStart.bat
- Make OneKeyStart.bat run pre-launch checks and repair incomplete environments
- Relax spaCy patch pin and make Demucs installation more resilient
- Fall back to global HuggingFace cache when project WhisperX cache is incomplete
- Bump version metadata to v3.0.3

中文:
- 新增分阶段 installer.py,支持可重复执行的依赖安装和环境健康检查
- setup_env.py 与 OneKeyStart.bat 支持共享 uv venv
- OneKeyStart.bat 启动前自动检查环境,缺失或过期时自动修复
- 放宽 spaCy patch 版本约束,提升 Demucs 安装容错
- 项目内 WhisperX 缓存不完整时自动回退到全局 HuggingFace 缓存
- 版本元数据升级到 v3.0.3
@doomsday616

Copy link
Copy Markdown
Owner Author

Closing this fork-internal PR. Superseded by an upstream PR to Huanshere/VideoLingo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant