From aada13a5c92c7a092645174fb54e0e79e257385a Mon Sep 17 00:00:00 2001 From: James Pine Date: Sun, 15 Mar 2026 14:32:10 -0700 Subject: [PATCH] Collect all inflect files for PyInstaller (fixes typeguard inspect.getsource) --- backend/build_binary.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backend/build_binary.py b/backend/build_binary.py index c291c10f..cf587dc2 100644 --- a/backend/build_binary.py +++ b/backend/build_binary.py @@ -108,6 +108,9 @@ def build_server(cuda=False): # Fix for pkg_resources and jaraco namespace packages '--hidden-import', 'pkg_resources.extern', '--collect-submodules', 'jaraco', + # inflect uses typeguard @typechecked which calls inspect.getsource() + # at import time — needs .py source files, not just .pyc bytecode + '--collect-all', 'inflect', ]) # Add CUDA-specific hidden imports