mirror of
https://github.com/eigent-ai/eigent.git
synced 2026-04-28 03:30:06 +00:00
chore: change dependency source to Aliyun mirror
This commit is contained in:
parent
e7a5c5536f
commit
9f40b62ee9
3 changed files with 4 additions and 4 deletions
|
|
@ -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, [
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
|
|
@ -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}...`);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue