Merge branch 'feat-change-dependency-source-to-aliyun' of github.com:eigent-ai/eigent into feat-change-dependency-source-to-aliyun

This commit is contained in:
luo 2025-08-21 17:33:07 +08:00
commit f951cf02f1
3 changed files with 4 additions and 4 deletions

View file

@ -180,8 +180,8 @@ export async function installDependencies() {
fs.writeFileSync(installingLockPath, '')
const installedLockPath = path.join(backendPath, 'uv_installed.lock')
const proxyArgs = ['--default-index', 'https://pypi.tuna.tsinghua.edu.cn/simple']
// const proxyArgs = ['--default-index', 'https://pypi.tuna.tsinghua.edu.cn/simple']
const proxyArgs = ['--default-index', 'https://mirrors.aliyun.com/pypi/simple/']
const runInstall = (extraArgs: string[]) => {
return new Promise<boolean>((resolveInner) => {
const node_process = spawn(uv_path, [

View file

@ -58,7 +58,7 @@ async function downloadBunBinary(bun_download_url,platform, arch, version = DEFA
try {
console.log(`Downloading bun ${version} for ${platformKey}...`)
console.log(`URL: ${downloadUrl}`)
if (fs.existsSync(tempFilename)) fs.unlinkSync(tempFilename)
// Use the new download function
await downloadWithRedirects(downloadUrl, tempFilename)

View file

@ -71,7 +71,7 @@ async function downloadUvBinary(
try {
console.log(`Downloading uv ${version} for ${platformKey}...`);
console.log(`URL: ${downloadUrl}`);
if (fs.existsSync(tempFilename)) fs.unlinkSync(tempFilename)
await downloadWithRedirects(downloadUrl, tempFilename);
console.log(`Extracting ${packageName} to ${binDir}...`);