|
19 | 19 | from dataclasses import dataclass |
20 | 20 | from typing import TYPE_CHECKING, Callable, Optional |
21 | 21 |
|
| 22 | +from pycompiler_ark.Ui import output |
| 23 | + |
22 | 24 | if TYPE_CHECKING: |
23 | 25 | from pycompiler_ark.Core.engine.build_context import BuildContext |
24 | 26 |
|
@@ -92,12 +94,6 @@ def resolve_engine_meta(engine_or_cls: object) -> EngineMeta: |
92 | 94 | author=str(getattr(engine_or_cls, "author", "") or ""), |
93 | 95 | ) |
94 | 96 |
|
95 | | - |
96 | | -def _tools_stage_message(stage: str, fr: str, en: str) -> tuple[str, str]: |
97 | | - prefix = f"[tools:{stage}] " |
98 | | - return prefix + fr, prefix + en |
99 | | - |
100 | | - |
101 | 97 | class CompilerEngine: |
102 | 98 | """ |
103 | 99 | Base class for a pluggable compilation engine. |
@@ -251,17 +247,6 @@ def required_tools(self) -> dict[str, list[str]]: |
251 | 247 | """ |
252 | 248 | return {"python": [], "system": []} |
253 | 249 |
|
254 | | - def ensure_tools_installed( |
255 | | - self, gui, stop_signal: Optional[Callable[[], bool]] = None |
256 | | - ) -> bool: |
257 | | - """ |
258 | | - Check if all required tools are installed, and install missing ones. |
259 | | - Delegates to the universal ensure_tools utility. |
260 | | - """ |
261 | | - from pycompiler_ark.Core.utils.ensure_tools import ensure_tools |
262 | | - res = ensure_tools(self.required_tools, stop_signal=stop_signal, gui=gui) |
263 | | - return res.ok |
264 | | - |
265 | 250 | def get_log_prefix(self, file_basename: str) -> str: |
266 | 251 | """ |
267 | 252 | Return a log prefix string for the engine's compilation messages. |
|
0 commit comments