"""Register the Kindred solver with the KCSolve solver registry."""

import FreeCAD

try:
    import kcsolve
    from kindred_solver import KindredSolver

    kcsolve.register_solver("kindred", KindredSolver)
    FreeCAD.Console.PrintLog("kindred-solver registered\n")
except Exception as exc:
    FreeCAD.Console.PrintWarning(f"kindred-solver: registration failed: {exc}\n")
