|
4 | 4 | * File Authors : Aoran Zeng <[email protected]> |
5 | 5 | * Contributors : Nul None <[email protected]> |
6 | 6 | * Created On : <2024-12-06> |
7 | | - * Last Modified : <2025-07-21> |
| 7 | + * Last Modified : <2025-07-22> |
8 | 8 | * |
9 | 9 | * 由于Rye已经有后继uv了,所以我们不把该管理器纳入Python group中 |
10 | 10 | * ------------------------------------------------------------*/ |
@@ -38,22 +38,17 @@ pl_python_rye_getsrc (char *option) |
38 | 38 | void |
39 | 39 | pl_python_rye_setsrc (char *option) |
40 | 40 | { |
41 | | - /* 并不在 Python group 中,所以不考虑 target group 情况 */ |
| 41 | + /* 并不在 Python group 中,所以不考虑 target group 情况,仅使用 Python group 提供的源 */ |
42 | 42 | chsrc_yield_source_and_confirm (pl_python_group); |
43 | 43 |
|
44 | | - const char *file = |
45 | | -R"( |
46 | | -[[sources]] |
47 | | -name = "@1@" |
48 | | -url = "@2@" |
49 | | -)"; |
| 44 | + const char *content = RAWSTR_pl_python_rye_config; |
50 | 45 |
|
51 | | - file = xy_str_gsub (file, "@1@", source.mirror->abbr); |
52 | | - file = xy_str_gsub (file, "@2@", source.url); |
| 46 | + content = xy_str_gsub (content, "@1@", source.mirror->abbr); |
| 47 | + content = xy_str_gsub (content, "@2@", source.url); |
53 | 48 |
|
54 | 49 | char *rye_config = pl_python_find_rye_config (); |
55 | 50 | chsrc_note2 (xy_strjoin (3, "请在配置文件 ", rye_config, " 中添加:")); |
56 | | - println (file); |
| 51 | + print (content); |
57 | 52 |
|
58 | 53 | chsrc_determine_chgtype (ChgType_Manual); |
59 | 54 | chsrc_conclude (&source); |
|
0 commit comments