def _prepare_environment(ctx: Context, env_file: str, is_install_deps: bool) -> None: """ Prepare the AEA project environment. :param ctx: a context object. :param env_file: the path to the envrionemtn file. :param is_install_deps: whether to install the dependencies """ load_env_file(env_file) if is_install_deps: requirements_path = REQUIREMENTS if Path(REQUIREMENTS).exists() else None do_install(ctx, requirement=requirements_path)
def _prepare_environment(ctx: Context, env_file: str, is_install_deps: bool) -> None: """ Prepare the AEA project environment. :param ctx: a context object. :param env_file: the path to the envrionemtn file. :param is_install_deps: whether to install the dependencies """ load_env_file(env_file) if is_install_deps: if Path("requirements.txt").exists(): do_install(ctx, requirement="requirements.txt") else: do_install(ctx)