This commit is contained in:
xsxx03-art
2026-06-04 15:17:02 +08:00
parent 9b4f43f0b1
commit 960066735c
30 changed files with 1172 additions and 315 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+6 -6
View File
@@ -60,18 +60,18 @@ def require_router_stack(require_gdstk: bool = False) -> RouterStackStatus:
try:
router_builder = importlib.import_module("mxpic_router.builder")
route_factory = getattr(router_builder, "_import_mxpic_forge_route")
route_factory()
checked.append("mxpic_forge Route")
route_factory = getattr(router_builder, "_import_route_backend")
route_backend = route_factory()
checked.append(getattr(route_backend, "backend_name", "route backend"))
except Exception as exc:
missing.append(f"mxpic_forge Route: {exc}")
missing.append(f"route backend: {exc}")
if missing:
details = "; ".join(missing)
raise RouterStackUnavailable(
"Required mxpic_router runtime stack is unavailable. "
"Build actions require the matched mxpic_router and mxpic_forge checkouts, "
f"Nazca, and gdstk for SVG preview generation. Details: {details}"
"Build actions require mxpic_router, Nazca, and either mxpic_forge Route "
f"or the Nazca Interconnect fallback. gdstk is also required for SVG preview generation. Details: {details}"
)
return RouterStackStatus(ok=True, router_root=router_root, checked=checked)