Skip to content

Automate Env mirror selection and Python venv activation#282

Draft
BernardXiong with Copilot wants to merge 11 commits into
masterfrom
copilot/update-installation-guide
Draft

Automate Env mirror selection and Python venv activation#282
BernardXiong with Copilot wants to merge 11 commits into
masterfrom
copilot/update-installation-guide

Conversation

Copilot AI commented Jul 14, 2026

Copy link
Copy Markdown

Installation no longer requires users to select a regional command. Linux and Windows detect the network region, clone from the suitable mirror, then restore repository remotes to GitHub.

  • Automatic mirror selection

    • Detect China-based IPs via ipinfo.io.
    • Use regional mirrors for installer dependencies and Env repository clones.
    • Reset cloned packages, sdk, and env remotes to GitHub.
  • Virtual environments

    • env.sh now creates and activates ~/.env/.venv on first use.
    • Installs Env dependencies inside the venv.
    • Cleans up incomplete venvs and reports setup failures.
    • Adds python3-venv to Ubuntu and SUSE prerequisites.
source ~/.env/env.sh
# Creates and activates ~/.env/.venv on first use
  • Windows setup

    • Applies automatic mirror detection to Git, pip, and Env bootstrap downloads.
    • Corrects the existing .env replacement prompt behavior.
  • Documentation

    • Removes region-specific installation commands and obsolete mirror troubleshooting.
    • Documents automatic mirror selection and first-use venv activation.

Copilot AI changed the title [WIP] Update installation guide to support automatic region detection Automate Env mirror selection and Python venv activation Jul 14, 2026
Copilot AI requested a review from BernardXiong July 14, 2026 01:04
@BernardXiong

Copy link
Copy Markdown
Member

@copilot 在linux下的安装shell脚本中,下载 raw.githubusercontent.com 的文件可能会存在下载不成功的问题,所以希望在从 raw.githubusercontent.com 中下载就先行判断地区:

  • 在wget下载时,还是手动的依据自身情况来从不同git仓库下载,这部分在README.md 中依然保留文字说明;
  • install_*.sh 需要优先判断地区,然后再确定如何进行安装。

Copilot AI commented Jul 15, 2026

Copy link
Copy Markdown
Author

@copilot 在linux下的安装shell脚本中,下载 raw.githubusercontent.com 的文件可能会存在下载不成功的问题,所以希望在从 raw.githubusercontent.com 中下�...

已处理,最终提交 672cf01:Ubuntu、SUSE、Arch 安装脚本会先检测地区,再从 Gitee 或 GitHub 下载 touch_env.sh;检测失败时交互选择镜像,非交互环境默认 GitHub。README 也恢复了下载安装脚本时手动选择 Gitee/GitHub 地址的说明。

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.

更新安装指南,不再区分地区,而是改成自动识别方式

2 participants