From 9bc5b261fef419b29ac4678f606171e3b5f0fdae Mon Sep 17 00:00:00 2001 From: James Pine Date: Thu, 16 Apr 2026 19:52:50 -0700 Subject: [PATCH] fix(build): use SPECPATH for runtime hook instead of hardcoded absolute path The linter expanded runtime_hooks=[] to an absolute /Users/... path which would break CI and other dev machines. Use os.path.join(SPECPATH, ...) to mirror the relative approach in build_binary.py. Co-Authored-By: Claude Opus 4.6 (1M context) --- backend/voicebox-server.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/voicebox-server.spec b/backend/voicebox-server.spec index 4c781beb..f2c1d9a2 100644 --- a/backend/voicebox-server.spec +++ b/backend/voicebox-server.spec @@ -1,4 +1,5 @@ # -*- mode: python ; coding: utf-8 -*- +import os from PyInstaller.utils.hooks import collect_submodules from PyInstaller.utils.hooks import collect_all from PyInstaller.utils.hooks import copy_metadata @@ -58,7 +59,7 @@ a = Analysis( hiddenimports=hiddenimports, hookspath=[], hooksconfig={}, - runtime_hooks=['/Users/jamie/Projects/spacedriveapp/voicebox/backend/pyi_rth_numpy_compat.py'], + runtime_hooks=[os.path.join(SPECPATH, 'pyi_rth_numpy_compat.py')], excludes=['nvidia', 'nvidia.cublas', 'nvidia.cuda_cupti', 'nvidia.cuda_nvrtc', 'nvidia.cuda_runtime', 'nvidia.cudnn', 'nvidia.cufft', 'nvidia.curand', 'nvidia.cusolver', 'nvidia.cusparse', 'nvidia.nccl', 'nvidia.nvjitlink', 'nvidia.nvtx'], noarchive=False, optimize=0,