This commit is contained in:
2021-03-14 14:59:17 +01:00
parent c41e3c0d78
commit 4390fea084
4 changed files with 16 additions and 24 deletions

View File

@@ -36,16 +36,20 @@ class InstallService(CommandABC):
Error.error('Found invalid dependencies in cpl.json.')
return
Pip.set_executable(project.python_path)
for dependency in project.dependencies:
Console.spinner(
f'Installing: {dependency}',
Pip.install, dependency,
source='https://pip.sh-edraft.de' if 'sh_cpl' in dependency else None,
stdout=subprocess.DEVNULL,
stderr=subprocess.DEVNULL,
text_foreground_color=ForegroundColorEnum.green,
spinner_foreground_color=ForegroundColorEnum.cyan
)
Pip.reset_executable()
@staticmethod
def _get_project_settings_dict(project: ProjectSettings) -> dict:
return {