@@ -9,12 +9,19 @@ def_target(pl_python_group, "python/pypi/py");
9
9
/**
10
10
* @note 测速链接的这个前缀是 ${host}/pipi/web/pacakges/56/e4....
11
11
* 下面有几个镜像站微调了这个路径,我们只要确认能找到 packages 目录就好
12
+ * @note 2025-09-29 更新了测试的 pkg 链接,换用了一个 40M 的
13
+ *
14
+ * @warning 2025-09-29 Sjtug 需要特殊处理
12
15
*/
13
16
static char *
14
17
pl_python_speed_url_constructor (const char * url , const char * user_data )
15
18
{
16
19
char * str = xy_str_delete_suffix (url , "/simple" );
17
- str = xy_2strcat (str , "/packages/56/e4/55aaac2b15af4dad079e5af329a79d961e5206589d0e02b1e8da221472ed/tensorflow-2.18.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl" );
20
+ str = xy_2strcat (str , "/packages/fa/80/eb88edc2e2b11cd2dd2e56f1c80b5784d11d6e6b7f04a1145df64df40065/opencv_python-4.12.0.88-cp37-abi3-win_amd64.whl" );
21
+ if (strstr (url , "mirror.sjtu.edu.cn" ))
22
+ // e.g. https://mirror.sjtu.edu.cn/pypi-packages/fa/80/eb88edc2e2b11cd2dd2e56f1c80b5784d11d6e6b7f04a1145df64df40065/opencv_python-4.12.0.88-cp37-abi3-win_amd64.whl
23
+ str = xy_str_gsub (str , "pypi-packages/packages" , "pypi-packages" );// 针对 Sjtug
24
+
18
25
return str ;
19
26
}
20
27
@@ -25,32 +32,34 @@ pl_python_group_prelude (void)
25
32
chef_prep_this (pl_python_group , gsr );
26
33
27
34
chef_set_created_on (this , "2023-09-03" );
28
- chef_set_last_updated (this , "2025-07-14 " );
29
- chef_set_sources_last_updated (this , "2025-07-11 " );
35
+ chef_set_last_updated (this , "2025-09-30 " );
36
+ chef_set_sources_last_updated (this , "2025-09-30 " );
30
37
31
38
chef_set_chef (this , "@happy-game" );
32
39
// 组换源的 leader target 应把所有 follower target 的贡献者都记录过来
33
40
chef_set_cooks (this , 2 , "@ccmywish" , "@happy-game" );
34
- chef_set_sauciers (this , 2 , "@xyx1926885268" , "@Kattos" );
41
+ chef_set_sauciers (this , 3 , "@xyx1926885268" , "@Kattos" , "@Mikachu2333 " );
35
42
36
43
chef_allow_local_mode (this , PartiallyCan , "部分包管理器支持项目级换源" , "Some package managers support project-level source changing" );
37
44
chef_allow_english (this );
38
45
chef_allow_user_define (this );
39
46
40
47
41
48
def_sources_begin ()
42
- {& UpstreamProvider , "https://pypi.org/simple" , FeedByPrelude },
43
- {& MirrorZ , "https://mirrors.cernet.edu.cn/pypi/web/simple" ,FeedByPrelude },
44
- {& Bfsu , "https://mirrors.bfsu.edu.cn/pypi/web/simple" , FeedByPrelude },
45
- /* 不要添加Zju,浙大的PyPI服务在校外访问会自动转向Tuna */
46
- {& Lzuoss , "https://mirror.lzu.edu.cn/pypi/web/simple" ,FeedByPrelude },
47
- {& Jlu , "https://mirrors.jlu.edu.cn/pypi/web/simple" ,FeedByPrelude },
48
- {& Sjtug_Zhiyuan , "https://mirror.sjtu.edu.cn/pypi/web/simple" ,FeedByPrelude },
49
- {& Tuna , "https://pypi.tuna.tsinghua.edu.cn/simple" , FeedByPrelude },
50
- {& Ali , "https://mirrors.aliyun.com/pypi/simple/" , FeedByPrelude },
51
- {& Nju , "https://mirror.nju.edu.cn/pypi/web/simple" ,FeedByPrelude },
52
- {& Pku , "https://mirrors.pku.edu.cn/pypi/web/simple" ,FeedByPrelude },
53
- {& Tencent , "https://mirrors.cloud.tencent.com/pypi/simple" ,FeedByPrelude },
49
+ {& UpstreamProvider , "https://pypi.org/simple" , FeedByPrelude },
50
+ {& MirrorZ , "https://mirrors.cernet.edu.cn/pypi/web/simple" , FeedByPrelude },
51
+ {& Bfsu , "https://mirrors.bfsu.edu.cn/pypi/web/simple" , FeedByPrelude },
52
+ // 不要添加Zju,浙大的PyPI服务在校外访问会自动转向Tuna
53
+ {& Lzuoss , "https://mirror.lzu.edu.cn/pypi/web/simple" , FeedByPrelude },
54
+ // 2025-09-29 此源已停用
55
+ // @ref https://mirrors.jlu.edu.cn/_news/#2025-04-06-pypi-repo-down
56
+ // {&Jlu, "https://mirrors.jlu.edu.cn/pypi/web/simple", FeedByPrelude},
57
+ {& Sjtug_Siyuan , "https://mirror.sjtu.edu.cn/pypi-packages" , FeedByPrelude },
58
+ {& Tuna , "https://pypi.tuna.tsinghua.edu.cn/simple" , FeedByPrelude },
59
+ {& Ali , "https://mirrors.aliyun.com/pypi/simple" , FeedByPrelude },
60
+ {& Nju , "https://mirror.nju.edu.cn/pypi/web/simple" , FeedByPrelude },
61
+ {& Pku , "https://mirrors.pku.edu.cn/pypi/web/simple" , FeedByPrelude },
62
+ {& Tencent , "https://mirrors.cloud.tencent.com/pypi/simple" , FeedByPrelude },
54
63
55
64
// {&Tencent_Intra, "https://mirrors.cloud.tencentyun.com/pypi/simple",FeedByPrelude}
56
65
{& Huawei , "https://mirrors.huaweicloud.com/repository/pypi/simple" ,FeedByPrelude },
0 commit comments