mirror of
https://github.com/RubyMetric/chsrc
synced 2025-12-23 02:51:53 +08:00
@@ -4,30 +4,9 @@
|
||||
* File Authors : Aoran Zeng <ccmywish@qq.com>
|
||||
* Contributors : Nul None <nul@none.org>
|
||||
* Created On : <2024-06-05>
|
||||
* Last Modified : <2024-09-13>
|
||||
* Last Modified : <2024-09-14>
|
||||
* ------------------------------------------------------------*/
|
||||
|
||||
/**
|
||||
* @update 2024-05-24
|
||||
* @note 不要添加Zju,浙大的pypi在校外访问会自动转向Tuna
|
||||
*/
|
||||
static SourceInfo
|
||||
pl_python_pdm_sources[] = {
|
||||
{&Upstream, "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"},
|
||||
{&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_pdm);
|
||||
|
||||
|
||||
/**
|
||||
* chsrc get pdm
|
||||
*/
|
||||
@@ -49,7 +28,10 @@ pl_python_pdm_getsrc (char *option)
|
||||
void
|
||||
pl_python_pdm_setsrc (char *option)
|
||||
{
|
||||
chsrc_yield_source_and_confirm (pl_python_pdm);
|
||||
SourceInfo source;
|
||||
chsrc_yield_the_source (pl_python);
|
||||
if (ProgMode_Target_Group!=true)
|
||||
chsrc_confirm_source;
|
||||
|
||||
char *cmd = NULL;
|
||||
|
||||
@@ -96,4 +78,5 @@ pl_python_pdm_feat (char *option)
|
||||
return fi;
|
||||
}
|
||||
|
||||
def_target_gsrf(pl_python_pdm);
|
||||
// def_target_gsrf(pl_python_pdm);
|
||||
TargetInfo pl_python_pdm_target = {def_target_inner_gsrf(pl_python_pdm),def_target_sourcesn(pl_python)};
|
||||
|
||||
Reference in New Issue
Block a user