def install_dependencies(): dependencies.install_module("golang") for key in DEPENDENCY_KEYS: name: str = key tag: str = "" overwrite: bool = True install_module(name, tag, overwrite)
def _post_install(self, tag: str): dependencies.install_module('golang') self.build_binary(tag, 'arwendebug') self.build_binary(tag, 'test') self.make_binary_symlink_in_parent_folder(tag, 'arwendebug', 'arwendebug') self.make_binary_symlink_in_parent_folder(tag, 'test', 'mandos-test')
def sign_message_with_bls_key(message, seed): dependencies.install_module("mcl_signer") tool = path.join(dependencies.get_module_directory("mcl_signer"), "signer") try: signed_message = myprocess.run_process([tool, message, seed], dump_to_stdout=False) return signed_message except Exception: raise CannotSignMessageWithBLSKey()
def run_tests(args): project = args.project directory = args.directory wildcard = args.wildcard logger.info("run_tests.project: %s", project) dependencies.install_module("arwentools") guards.is_directory(project) project = load_project(project) project.run_tests(directory, wildcard)
def _ensure_dependencies_installed(self): module_keys = self.get_dependencies() for module_key in module_keys: dependencies.install_module(module_key)
def install_if_missing(): dependencies.install_module("nodedebug", overwrite=False)
def install(args: Any): name: str = args.name tag: str = args.tag overwrite: bool = args.overwrite dependencies.install_module(name, tag, overwrite)