mirror of
https://github.com/RubyMetric/chsrc
synced 2025-06-16 08:26:59 +08:00
Support locally change source pdm
for Python
This commit is contained in:
parent
e72b07604c
commit
af3cc07730
@ -159,7 +159,14 @@ pl_python_setsrc (char *option)
|
|||||||
chsrc_run (cmd);
|
chsrc_run (cmd);
|
||||||
|
|
||||||
if (pdm_exist) {
|
if (pdm_exist) {
|
||||||
cmd = xy_2strjoin ("pdm config --global pypi.url ", source.url);
|
|
||||||
|
char *where = "--global";
|
||||||
|
if (Cli_Optiion_Locally==1)
|
||||||
|
{
|
||||||
|
where = "--local";
|
||||||
|
}
|
||||||
|
|
||||||
|
cmd = xy_strjoin (4, "pdm config ", where, " pypi.url ", source.url);
|
||||||
chsrc_run (cmd);
|
chsrc_run (cmd);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user