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