"""Product configuration scaffold for the ORY-MINI internal GUI.""" from __future__ import annotations import sys from pathlib import Path _BUILD_ROOT = Path(__file__).resolve().parents[2] if str(_BUILD_ROOT) not in sys.path: sys.path.insert(0, str(_BUILD_ROOT)) from common.paths import REPO_ROOT from gui.common.pyinstaller_driver import GuiBuildConfig ENTRY_SCRIPT = REPO_ROOT / "examples" / "mini_pipeline.py" EXE_NAME = "OryMini.exe" DIST_NAME = "OryMini" HIDDEN_IMPORTS = [ "PyQt5", "pyqtgraph", "cv2", "orisys", "gui", "pipeline", "viz", ] EXCLUDE_MODULES = [ "cupy", "cupyx", "pyopencl", "open3d", "tkinter", "pip", "wheel", ] DATA_DIRS = [ ("config", "config"), ] README_LINES = [ "ORY-MINI internal calibration/testing GUI (scaffold)", "", "This product packaging target is reserved for a future internal tool.", "Entry point placeholder:", f" {ENTRY_SCRIPT.as_posix()}", ] def make_config() -> GuiBuildConfig: return GuiBuildConfig( product="ory_mini", entry_script=ENTRY_SCRIPT, exe_name=EXE_NAME, dist_name=DIST_NAME, hidden_imports=list(HIDDEN_IMPORTS), exclude_modules=list(EXCLUDE_MODULES), data_dirs=list(DATA_DIRS), readme_lines=list(README_LINES), windowed=False, )