使用 chef_prep_this()

This commit is contained in:
Aoran Zeng
2025-08-22 13:08:27 +08:00
parent 12e69edb86
commit adca7b3ea2
69 changed files with 75 additions and 151 deletions

View File

@@ -7,8 +7,7 @@ def_target(pl_python_pdm, "pdm");
void
pl_python_pdm_prelude (void)
{
use_this(pl_python_pdm);
chef_allow_gsr(pl_python_pdm);
chef_prep_this (pl_python_pdm, gsr);
chef_set_created_on (this, "2024-06-05");
chef_set_last_updated (this, "2025-07-11");
@@ -22,9 +21,6 @@ pl_python_pdm_prelude (void)
chef_allow_english(this);
chef_allow_user_define(this);
// 使用 pl_python_group 的源
this->sources = pl_python_group_target.sources;
this->sources_n = pl_python_group_target.sources_n;
}

View File

@@ -7,8 +7,7 @@ def_target(pl_python_poetry, "poetry");
void
pl_python_poetry_prelude (void)
{
use_this(pl_python_poetry);
chef_allow_gsr(pl_python_poetry);
chef_prep_this (pl_python_poetry, gsr);
chef_set_created_on (this, "2024-08-08");
chef_set_last_updated (this, "2025-07-11");

View File

@@ -58,8 +58,7 @@ pl_python_group_setsrc (char *option)
chsrc_set_target_group_mode ();
use_this(pl_python_group);
Source_t source = chsrc_yield_source_and_confirm (this, option);
use_this_source (pl_python_group);
// 交给后面检查命令的存在性

View File

@@ -9,8 +9,7 @@ def_target(pl_python_rye, "rye");
void
pl_python_rye_prelude (void)
{
use_this(pl_python_rye);
chef_allow_gsr(pl_python_rye);
chef_prep_this (pl_python_rye, gsr);
chef_set_created_on (this, "2024-12-06");
chef_set_last_updated (this, "2025-08-09");

View File

@@ -22,8 +22,7 @@ pl_python_speed_url_constructor (const char *url, const char *user_data)
void
pl_python_group_prelude (void)
{
use_this(pl_python_group);
chef_allow_gsr(pl_python_group);
chef_prep_this (pl_python_group, gsr);
chef_set_created_on (this, "2023-09-03");
chef_set_last_updated (this, "2025-07-14");
@@ -73,7 +72,7 @@ pl_python_check_unofficial_pkger (bool *poetry_exist, bool *pdm_exist, bool *uv_
/**
* @param[out] prog 返回 Python 的可用名,如果不可用,则返回 NULL
* @param[out] prog_name 返回 Python 的可用名,如果不可用,则返回 NULL
*/
void
pl_python_get_py_program_name (char **prog_name)

View File

@@ -7,8 +7,7 @@ def_target(pl_python_pip, "pip");
void
pl_python_pip_prelude (void)
{
use_this(pl_python_pip);
chef_allow_gsr(pl_python_pip);
chef_prep_this (pl_python_pip, gsr);
chef_set_created_on (this, "2023-09-03");
chef_set_last_updated (this, "2025-07-11");

View File

@@ -7,8 +7,7 @@ def_target(pl_python_uv, "uv");
void
pl_python_uv_prelude (void)
{
use_this(pl_python_uv);
chef_allow_gsr(pl_python_uv);
chef_prep_this (pl_python_uv, gsr);
chef_set_created_on (this, "2024-12-11");
chef_set_last_updated (this, "2025-08-09");