|
@@ -21,10 +21,13 @@ class PluginImpl(plugins.python.PythonPlugin):
|
|
|
# cmds.insert(2, 'python3 -m pip install -U "setuptools<58"')
|
|
|
#cmds.insert(1, 'pip install --trusted-host pypi.python.org --trusted-host files.pythonhosted.org --trusted-host pypi.org --upgrade pip')
|
|
|
for idx, cmd in enumerate(cmds):
|
|
|
+ if cmd.strip().startswith('pip install -c'):
|
|
|
+ cmds[idx] = f"{cmd.strip()} --use-deprecated=legacy-resolver"
|
|
|
# Find position where to inject pip uninstall
|
|
|
- if cmd.strip().startswith('[ -f setup.py ]'):
|
|
|
- xcmds = cmd.split("&&", 1)
|
|
|
- # Inject and force removal
|
|
|
- # cmds[idx] = f"{xcmds[0]} && pip uninstall -y typing uuid && {xcmds[1]}"
|
|
|
- cmds[idx] = f"{xcmds[0]} && pip uninstall -y typing uuid && {xcmds[1]}"
|
|
|
+ # if cmd.strip().startswith('[ -f setup.py ]'):
|
|
|
+ # xcmds = cmd.split("&&", 1)
|
|
|
+ # # Inject and force removal
|
|
|
+ # # cmds[idx] = f"{xcmds[0]} && pip uninstall -y typing uuid && {xcmds[1]}"
|
|
|
+ # cmds[idx] = f"{xcmds[0]} && pip uninstall -y typing uuid && {xcmds[1]}"
|
|
|
+ # print(cmds)
|
|
|
return cmds
|