def validate_tools(self): """ A method that gets called as part of image generation that uses TOOLS class attribute to check for the existence of the needed binary/tools on the host system. """ for tool_name, tool_version in self.TOOLS.items(): if not check_tool(tool_name, tool_version): err_msg = "".join([ tool_name, " with version {0} or higher".format(tool_version) if tool_version else "", " not found on your system.", ]) raise EasyBuildError(err_msg)