32 lines
913 B
Python
32 lines
913 B
Python
"""Repository and packaging output paths."""
|
|
|
|
from __future__ import annotations
|
|
|
|
from pathlib import Path
|
|
|
|
# build/common/paths.py → parents: common, build, repo
|
|
REPO_ROOT = Path(__file__).resolve().parents[2]
|
|
|
|
NUITKA_COMPILE_DIR = REPO_ROOT / "build" / "nuitka" / "compile"
|
|
NUITKA_WHEEL_DIR = REPO_ROOT / "build" / "nuitka" / "wheel"
|
|
NUITKA_GUI_DIR = REPO_ROOT / "build" / "nuitka" / "gui"
|
|
GUI_DIST_DIR = REPO_ROOT / "dist" / "OrisysDashboard"
|
|
PYINSTALLER_WORK_DIR = REPO_ROOT / "build" / "pyinstaller_work"
|
|
|
|
|
|
def repo_path(*parts: str) -> Path:
|
|
return REPO_ROOT.joinpath(*parts)
|
|
|
|
|
|
def sdk_dir(version: str) -> Path:
|
|
return REPO_ROOT / "SDK" / version
|
|
|
|
|
|
def repaired_wheel_dir() -> Path:
|
|
"""Directory for auditwheel-repaired wheels under the Nuitka wheel build tree."""
|
|
return NUITKA_WHEEL_DIR / "repaired"
|
|
|
|
|
|
def gui_dist_dir(dist_name: str) -> Path:
|
|
return REPO_ROOT / "dist" / dist_name
|