2021.4 #19
@ -1,5 +1,6 @@
|
|||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
import time
|
||||||
from collections import Callable
|
from collections import Callable
|
||||||
from typing import Union, Optional
|
from typing import Union, Optional
|
||||||
|
|
||||||
@ -442,6 +443,8 @@ class Console:
|
|||||||
for call in cls._hold_back_calls:
|
for call in cls._hold_back_calls:
|
||||||
call.function(*call.args)
|
call.function(*call.args)
|
||||||
|
|
||||||
|
time.sleep(0.1)
|
||||||
|
|
||||||
return return_value
|
return return_value
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
@ -121,7 +121,9 @@ class InstallService(CommandABC):
|
|||||||
spinner_foreground_color=ForegroundColorEnum.cyan
|
spinner_foreground_color=ForegroundColorEnum.cyan
|
||||||
)
|
)
|
||||||
new_package = Pip.get_package(name)
|
new_package = Pip.get_package(name)
|
||||||
if new_package is None:
|
if new_package is None \
|
||||||
|
or '==' in package and \
|
||||||
|
version.parse(package.split('==')[1]) != version.parse(new_package.split('==')[1]):
|
||||||
Console.error(f'Installation of package {package} failed')
|
Console.error(f'Installation of package {package} failed')
|
||||||
return
|
return
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user