Skip to content

Commit 5bc8faf

Browse files
committed
重新添加 Python group target
1 parent e63f549 commit 5bc8faf

3 files changed

Lines changed: 20 additions & 1 deletion

File tree

‎src/recipe/lang/Python/Python.c‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/** ------------------------------------------------------------
2+
* SPDX-License-Identifier: GPL-3.0-or-later
3+
* ------------------------------------------------------------*/
4+
5+
def_group_target(pl_py_group, "py/python");
6+
7+
void
8+
pl_py_group_prelude (void)
9+
{
10+
chef_prep_this (pl_py_group, NOOP);
11+
12+
chef_set_recipe_created_on (this, "2023-09-03");
13+
chef_set_recipe_last_updated (this, "2026-08-13");
14+
15+
chef_set_sub_targets (this, 4, &pl_pip_target, &pl_pdm_target, &pl_poetry_target, &pl_uv_target);
16+
}

‎src/recipe/lang/Python/pip.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* SPDX-License-Identifier: GPL-3.0-or-later
33
* ------------------------------------------------------------*/
44

5-
def_target(pl_pip, "pip/python/py");
5+
def_target(pl_pip, "pip");
66

77
void
88
pl_pip_prelude (void)

‎src/recipe/menu.c‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626
#include "lang/Python/uv/uv-python-build.c"
2727
#include "lang/Python/uv/uv.c"
2828

29+
#include "lang/Python/Python.c"
30+
2931

3032
#include "lang/JavaScript/Node.js-binary.c"
3133
#include "lang/JavaScript/npm.c"
@@ -162,6 +164,7 @@ chsrc_init_menu ()
162164
#define add(t) xy_seq_push(ProgStore.pl, &pl_##t##_target); (&pl_##t##_target)->preludefn = pl_##t##_prelude
163165
add (ruby);
164166
// Python
167+
add (py_group);
165168
add (pip);
166169
add (poetry);
167170
add (pdm);

0 commit comments

Comments
 (0)