Skip to content

Commit c0598b2

Browse files
committed
Add accurate speed url for Python
1 parent 543848a commit c0598b2

File tree

2 files changed

+52
-18
lines changed

2 files changed

+52
-18
lines changed

src/recipe/lang/Dart/Pub.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* Dart Pub 软件仓库
1313
* ------------------------------------------------------------*/
1414

15-
#define PL_Dart_Pub_Speed_URL_Postfix "/packages/flutter_vision/versions/1.1.4.tar.gz
15+
#define PL_Dart_Pub_Speed_URL_Postfix "/packages/flutter_vision/versions/1.1.4.tar.gz"
1616

1717
/**
1818
* @update 2025-04-15

src/recipe/lang/Python/common.h

Lines changed: 51 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,36 +7,70 @@
77
* |
88
* Created On : <2023-09-03>
99
* Major Revision : 1
10-
* Last Modified : <2025-06-12>
10+
* Last Modified : <2025-07-11>
1111
* ------------------------------------------------------------*/
1212

13+
/**
14+
* 注意这个前缀是 host/pipi/web/pacakges....
15+
* 下面有几个镜像站微调了这个路径,我们只要确认能找到 packages 目录就好
16+
*/
17+
#define PL_Python_Group_Speed_URL_Postfix "/packages/56/e4/55aaac2b15af4dad079e5af329a79d961e5206589d0e02b1e8da221472ed/tensorflow-2.18.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl"
18+
1319
static SourceProvider_t pl_python_pypi_upstream =
1420
{
1521
def_upstream, "https://pypi.org/",
1622
{NotSkip, NA, NA, "https://files.pythonhosted.org/packages/56/e4/55aaac2b15af4dad079e5af329a79d961e5206589d0e02b1e8da221472ed/tensorflow-2.18.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", ACCURATE} // 260MB
1723
};
1824

1925
/**
20-
* @update 2025-06-12
26+
* @update 2025-07-11
2127
* @note 不要添加Zju,浙大的PyPI服务在校外访问会自动转向Tuna
2228
*/
2329
static Source_t pl_python_sources[] =
2430
{
25-
{&pl_python_pypi_upstream, "https://pypi.org/simple"},
26-
{&MirrorZ, "https://mirrors.cernet.edu.cn/pypi/web/simple"},
27-
{&Bfsu, "https://mirrors.bfsu.edu.cn/pypi/web/simple"},
28-
{&Lzuoss, "https://mirror.lzu.edu.cn/pypi/web/simple"},
29-
{&Jlu, "https://mirrors.jlu.edu.cn/pypi/web/simple"},
30-
{&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/pypi/web/simple"},
31-
{&Tuna, "https://pypi.tuna.tsinghua.edu.cn/simple"},
32-
{&Ali, "https://mirrors.aliyun.com/pypi/simple/"},
33-
{&Nju, "https://mirror.nju.edu.cn/pypi/web/simple"},
34-
{&Pku, "https://mirrors.pku.edu.cn/pypi/web/simple"},
35-
{&Tencent, "https://mirrors.cloud.tencent.com/pypi/simple"},
36-
// {&Tencent_Intra, "https://mirrors.cloud.tencentyun.com/pypi/simple"},
37-
{&Huawei, "https://mirrors.huaweicloud.com/repository/pypi/simple"},
38-
{&Hust, "https://mirrors.hust.edu.cn/pypi/web/simple"}
39-
// {&Netease, "https://mirrors.163.com/.help/pypi.html"} /* 不启用原因:24小时更新一次 */
31+
{&pl_python_pypi_upstream, "https://pypi.org/simple", DelegateToUpstream},
32+
33+
{&MirrorZ, "https://mirrors.cernet.edu.cn/pypi/web/simple",
34+
"https://mirrors.cernet.edu.cn/pypi/web" PL_Python_Group_Speed_URL_Postfix},
35+
36+
{&Bfsu, "https://mirrors.bfsu.edu.cn/pypi/web/simple",
37+
"https://mirrors.bfsu.edu.cn/pypi/web" PL_Python_Group_Speed_URL_Postfix},
38+
39+
{&Lzuoss, "https://mirror.lzu.edu.cn/pypi/web/simple",
40+
"https://mirror.lzu.edu.cn/pypi/web" PL_Python_Group_Speed_URL_Postfix},
41+
42+
{&Jlu, "https://mirrors.jlu.edu.cn/pypi/web/simple",
43+
"https://mirrors.jlu.edu.cn/pypi/web" PL_Python_Group_Speed_URL_Postfix},
44+
45+
{&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/pypi/web/simple",
46+
"https://mirror.sjtu.edu.cn/pypi/web" PL_Python_Group_Speed_URL_Postfix},
47+
48+
{&Tuna, "https://pypi.tuna.tsinghua.edu.cn/simple",
49+
"https://pypi.tuna.tsinghua.edu.cn" PL_Python_Group_Speed_URL_Postfix},
50+
51+
{&Ali, "https://mirrors.aliyun.com/pypi/simple/",
52+
"https://mirrors.aliyun.com/pypi" PL_Python_Group_Speed_URL_Postfix},
53+
54+
{&Nju, "https://mirror.nju.edu.cn/pypi/web/simple",
55+
"https://mirror.nju.edu.cn/pypi/web" PL_Python_Group_Speed_URL_Postfix},
56+
57+
{&Pku, "https://mirrors.pku.edu.cn/pypi/web/simple",
58+
"https://mirrors.pku.edu.cn/pypi/web" PL_Python_Group_Speed_URL_Postfix},
59+
60+
{&Tencent, "https://mirrors.cloud.tencent.com/pypi/simple",
61+
"https://mirrors.cloud.tencent.com/pypi" PL_Python_Group_Speed_URL_Postfix},
62+
63+
// {&Tencent_Intra, "https://mirrors.cloud.tencentyun.com/pypi/simple",
64+
// "https://mirrors.cloud.tencentyun.com/pypi" PL_Python_Group_Speed_URL_Postfix,
65+
66+
{&Huawei, "https://mirrors.huaweicloud.com/repository/pypi/simple",
67+
"https://mirrors.huaweicloud.com/repository/pypi" PL_Python_Group_Speed_URL_Postfix},
68+
69+
{&Hust, "https://mirrors.hust.edu.cn/pypi/web/simple",
70+
"https://mirrors.hust.edu.cn/pypi/web" PL_Python_Group_Speed_URL_Postfix},
71+
72+
/* 不启用原因:24小时更新一次 */
73+
// {&Netease, "https://mirrors.163.com/.help/pypi.html", NULL}
4074
};
4175
def_sources_n(pl_python);
4276

0 commit comments

Comments
 (0)