mirror of
https://github.com/jamiepine/voicebox.git
synced 2026-09-18 14:20:42 -07:00
Add LLVM installation and exclude unnecessary modules from PyInstaller build
- Install llvm-dev on Ubuntu for llvmlite compilation - Install LLVM via Homebrew on macOS and configure PATH - Exclude matplotlib, IPython, notebook, pytest, tensorboard from bundle to reduce size - Keep --onefile mode with module exclusions to avoid 4GB limit
This commit is contained in:
@@ -26,6 +26,18 @@ def build_server():
|
||||
args.extend(['--paths', str(local_qwen_path)])
|
||||
print(f"Using local qwen_tts source from: {local_qwen_path}")
|
||||
|
||||
# Exclude unnecessary modules to reduce size
|
||||
args.extend([
|
||||
'--exclude-module', 'matplotlib',
|
||||
'--exclude-module', 'IPython',
|
||||
'--exclude-module', 'notebook',
|
||||
'--exclude-module', 'pytest',
|
||||
'--exclude-module', 'setuptools',
|
||||
'--exclude-module', 'torch.distributions',
|
||||
'--exclude-module', 'torch.testing',
|
||||
'--exclude-module', 'tensorboard',
|
||||
])
|
||||
|
||||
# Add hidden imports
|
||||
args.extend([
|
||||
'--hidden-import', 'backend',
|
||||
|
||||
Reference in New Issue
Block a user