-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathchevin.spec
More file actions
98 lines (90 loc) · 2.54 KB
/
chevin.spec
File metadata and controls
98 lines (90 loc) · 2.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
# -*- mode: python ; coding: utf-8 -*-
"""
PyInstaller spec file for Chevin Daemon.
Build with: python scripts/build_release.py
(Uses a clean venv to avoid bundling unrelated packages)
This creates a single executable that includes:
- Python runtime
- Only required dependencies (FastAPI, uvicorn, anthropic, etc.)
- The Chevin daemon GUI
"""
import sys
from pathlib import Path
block_cipher = None
# Get the project root
project_root = Path(SPECPATH)
a = Analysis(
['chevin_daemon.pyw'],
pathex=[str(project_root / 'src')],
binaries=[],
datas=[],
hiddenimports=[
# FastAPI/Uvicorn (ASGI server)
'uvicorn.logging',
'uvicorn.loops.auto',
'uvicorn.protocols.http.auto',
'uvicorn.protocols.websockets.auto',
'uvicorn.lifespan.on',
'starlette.routing',
'starlette.middleware.cors',
'anyio._backends._asyncio',
# Networking
'httpcore',
'h11',
'wsproto',
# Chevin core modules
'chevin.core.data_dir',
'chevin.core.registry',
'chevin.agents.orchestrator',
'chevin.agents.onboarding',
'chevin.transports.http',
'chevin.tools.delegate_tool',
'chevin.tools.board_tools',
],
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=[
# Dev tools
'pytest', 'black', 'ruff', 'mypy', 'coverage',
# ML/Data science (definitely not needed)
'torch', 'tensorflow', 'keras', 'sklearn', 'scipy',
'numpy', 'pandas', 'matplotlib', 'seaborn', 'plotly',
'PIL', 'cv2', 'opencv',
# Other heavy packages
'IPython', 'jupyter', 'notebook',
'boto3', 'botocore', 'awscli',
'pygame', 'pyglet',
'numba', 'llvmlite',
'transformers', 'tokenizers', 'huggingface_hub',
# Test frameworks
'nose', 'unittest2',
],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher,
noarchive=False,
)
pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher)
exe = EXE(
pyz,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
[],
name='Chevin',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True, # Compress with UPX if available
upx_exclude=[],
runtime_tmpdir=None,
console=False, # No console window (GUI app)
disable_windowed_traceback=False,
argv_emulation=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None,
icon=None, # TODO: Add icon file: icon='assets/chevin.ico'
)