mirror of
https://github.com/RubyMetric/chsrc
synced 2025-10-09 21:33:23 +08:00
Support locally change source pdm
for Python
This commit is contained in:
@@ -159,7 +159,14 @@ pl_python_setsrc (char *option)
|
||||
chsrc_run (cmd);
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user