hwtBuildsystem.common package¶
Submodules¶
hwtBuildsystem.common.cmdResult module¶
- class hwtBuildsystem.common.cmdResult.TclCmdResult(cmd, resultText, errors, criticalWarnings, warnings, infos)[source]¶
Bases:
object
Parsed result of comand over cli
- ANY_COLOR = '((\x1b\\[0m)?(\x1b\\[0;(\\d+)m)?\\s*)?'¶
- OPT_MSG_NUMBER = '(\\s*\\(\\d+\\))?'¶
- regex_critWarn = re.compile('((\x1b\\[0m)?(\x1b\\[0;(\\d+)m)?\\s*)?CRITICAL WARNING(\\s*\\(\\d+\\))?: (.*)')¶
- regex_err = re.compile('((\x1b\\[0m)?(\x1b\\[0;(\\d+)m)?\\s*)?ERROR(\\s*\\(\\d+\\))?: (.*)')¶
- regex_info = re.compile('((\x1b\\[0m)?(\x1b\\[0;(\\d+)m)?\\s*)?INFO(\\s*\\(\\d+\\))?: (.*)')¶
- regex_invalidCmd = re.compile('(invalid command name ".*")')¶
- regex_warn = re.compile('((\x1b\\[0m)?(\x1b\\[0;(\\d+)m)?\\s*)?WARNING(\\s*\\(\\d+\\))?: (.*)')¶
hwtBuildsystem.common.executor module¶
- class hwtBuildsystem.common.executor.ToolExecutor(workerCnt: int | None = None)[source]¶
Bases:
object
An abstract class for a tool executors. Tool executor is an object which controlls some external tool in real time on command-output basis.
- exeCmd(cmd) TclCmdResult [source]¶
- project(root, name: str) SynthesisToolProject [source]¶
hwtBuildsystem.common.project module¶
- class hwtBuildsystem.common.project.SynthesisToolProject(executor: ToolExecutor, path: str, name: str)[source]¶
Bases:
object