Fix python and js group

This commit is contained in:
Aoran Zeng
2025-08-10 20:37:36 +08:00
parent efd2ea2712
commit fec96b812b
10 changed files with 21 additions and 96 deletions

View File

@@ -57,7 +57,9 @@ pl_python_group_setsrc (char *option)
pl_python_check_unofficial_pkger (&poetry_exist, &pdm_exist, &uv_exist);
chsrc_set_target_group_mode ();
chsrc_yield_source_and_confirm (pl_python_group);
use_this(pl_python_group);
Source_t source = chsrc_yield_source_and_confirm (this, option);
// 交给后面检查命令的存在性

View File

@@ -1,5 +1,7 @@
/** ------------------------------------------------------------
* SPDX-License-Identifier: GPL-3.0-or-later
* -------------------------------------------------------------
* 由于Rye已经有后继uv了所以我们不把该管理器纳入Python group中
* ------------------------------------------------------------*/
def_target(pl_python_rye);
@@ -23,9 +25,6 @@ pl_python_rye_prelude (void)
chef_allow_english(this);
chef_allow_user_define(this);
chef_set_note ("由于Rye已经有后继uv了所以我们不把该管理器纳入Python group中",
"Since Rye has successor uv, we don't include this manager in Python group");
// 使用 pl_python_group 的源
this->sources = pl_python_group_target.sources;
this->sources_n = pl_python_group_target.sources_n;

View File

@@ -11,7 +11,7 @@ def_target(pl_python_group);
* 下面有几个镜像站微调了这个路径,我们只要确认能找到 packages 目录就好
*/
static char *
pl_python_speed_url_constructor (char *url, char *user_data)
pl_python_speed_url_constructor (const char *url, const char *user_data)
{
char *str = xy_str_delete_suffix (url, "/simple");
str = xy_2strjoin (str, "/packages/56/e4/55aaac2b15af4dad079e5af329a79d961e5206589d0e02b1e8da221472ed/tensorflow-2.18.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl");
@@ -49,7 +49,7 @@ pl_python_group_prelude (void)
/* 不要添加Zju浙大的PyPI服务在校外访问会自动转向Tuna */
{&Lzuoss, "https://mirror.lzu.edu.cn/pypi/web/simple",FeedByPrelude},
{&Jlu, "https://mirrors.jlu.edu.cn/pypi/web/simple",FeedByPrelude},
{&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/pypi/web/simple",FeedByPrelude,
{&Sjtug_Zhiyuan, "https://mirror.sjtu.edu.cn/pypi/web/simple",FeedByPrelude},
{&Tuna, "https://pypi.tuna.tsinghua.edu.cn/simple", FeedByPrelude},
{&Ali, "https://mirrors.aliyun.com/pypi/simple/", FeedByPrelude},
{&Nju, "https://mirror.nju.edu.cn/pypi/web/simple",FeedByPrelude},