From 3c683ca3394e856312ccc94f87f6466dcb402eb3 Mon Sep 17 00:00:00 2001 From: Aoran Zeng Date: Fri, 22 Nov 2024 10:52:57 +0800 Subject: [PATCH] Measure upstream for `Python` [GitHub #125] --- src/recipe/lang/Python/common.h | 30 ++++++++++++++++++------------ 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/src/recipe/lang/Python/common.h b/src/recipe/lang/Python/common.h index 056d3ec..ceeb794 100644 --- a/src/recipe/lang/Python/common.h +++ b/src/recipe/lang/Python/common.h @@ -5,27 +5,33 @@ * Contributors : Nul None * Created On : <2023-09-03> * Major Revision : 1 - * Last Modified : <2024-09-14> + * Last Modified : <2024-11-22> * ------------------------------------------------------------*/ +static SourceProvider_t UpstreamPython = +{ + "upstream", "PyPI", "上游默认源 PyPI", "https://pypi.org/", + {NotSkip, NA, NA, "https://files.pythonhosted.org/packages/56/e4/55aaac2b15af4dad079e5af329a79d961e5206589d0e02b1e8da221472ed/tensorflow-2.18.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl"} // 260MB +}; + /** * @update 2024-09-14 * @note 不要添加Zju,浙大的pypi在校外访问会自动转向Tuna */ static Source_t pl_python_sources[] = { - {&UpstreamProvider, "https://pypi.org/simple"}, - {&Bfsu, "https://mirrors.bfsu.edu.cn/pypi/web/simple"}, - {&Lzuoss, "https://mirror.lzu.edu.cn/pypi/web/simple"}, - {&Jlu, "https://mirrors.jlu.edu.cn/pypi/web/simple"}, - {&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/pypi/web/simple"}, - {&Tuna, "https://pypi.tuna.tsinghua.edu.cn/simple"}, - {&Ali, "https://mirrors.aliyun.com/pypi/simple/"}, - {&Tencent, "https://mirrors.cloud.tencent.com/pypi/simple"}, + {&UpstreamPython, "https://pypi.org/simple"}, + {&Bfsu, "https://mirrors.bfsu.edu.cn/pypi/web/simple"}, + {&Lzuoss, "https://mirror.lzu.edu.cn/pypi/web/simple"}, + {&Jlu, "https://mirrors.jlu.edu.cn/pypi/web/simple"}, + {&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/pypi/web/simple"}, + {&Tuna, "https://pypi.tuna.tsinghua.edu.cn/simple"}, + {&Ali, "https://mirrors.aliyun.com/pypi/simple/"}, + {&Tencent, "https://mirrors.cloud.tencent.com/pypi/simple"}, // {&Tencent_Intra, "https://mirrors.cloud.tencentyun.com/pypi/simple"}, - {&Huawei, "https://mirrors.huaweicloud.com/repository/pypi/simple"}, - {&Hust, "https://mirrors.hust.edu.cn/pypi/web/simple"} - // {&Netease, "https://mirrors.163.com/.help/pypi.html"} // 不用,24小时更新一次 + {&Huawei, "https://mirrors.huaweicloud.com/repository/pypi/simple"}, + {&Hust, "https://mirrors.hust.edu.cn/pypi/web/simple"} + // {&Netease, "https://mirrors.163.com/.help/pypi.html"} // 不用,24小时更新一次 }; def_sources_n(pl_python);