aea.helpers.install_
dependency
Helper to install python dependencies.
install_
dependency
def install_dependency(dependency_name: str,
dependency: Dependency,
logger: Logger,
install_timeout: float = 300) -> None
Install python dependency to the current python environment.
Arguments:
dependency_name
: name of the python packagedependency
: Dependency specificationlogger
: the loggerinstall_timeout
: timeout to wait pip to install
install_
dependencies
def install_dependencies(dependencies: List[Dependency],
logger: Logger,
install_timeout: float = 300) -> None
Install python dependencies to the current python environment.
Arguments:
dependencies
: dict of dependency name and specificationlogger
: the loggerinstall_timeout
: timeout to wait pip to install
call_
pip
def call_pip(pip_args: List[str],
timeout: float = 300,
retry: bool = False) -> None
Run pip install command.
Arguments:
pip_args
: list strings of the commandtimeout
: timeout to wait pip to installretry
: bool, try one more time if command failed
run_
install_
subprocess
def run_install_subprocess(install_command: List[str],
install_timeout: float = 300) -> int
Try executing install command.
Arguments:
install_command
: list strings of the commandinstall_timeout
: timeout to wait pip to install
Returns:
the return code of the subprocess