reorganized build directory
This commit is contained in:
@@ -0,0 +1,63 @@
|
||||
"""Product configuration scaffold for the ORY-BOX 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" / "products" / "ory_box" / "basic_pipeline.py"
|
||||
EXE_NAME = "OryBox.exe"
|
||||
DIST_NAME = "OryBox"
|
||||
|
||||
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-BOX 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_box",
|
||||
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,
|
||||
)
|
||||
Reference in New Issue
Block a user