-
Notifications
You must be signed in to change notification settings - Fork 408
Expand file tree
/
Copy pathopencontext.spec
More file actions
70 lines (65 loc) · 2.13 KB
/
Copy pathopencontext.spec
File metadata and controls
70 lines (65 loc) · 2.13 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
# -*- mode: python ; coding: utf-8 -*-
import sys
from PyInstaller.utils.hooks import collect_submodules, collect_data_files
is_windows = sys.platform.startswith("win")
_numpy_hidden = collect_submodules('numpy')
_pandas_hidden = collect_submodules('pandas')
_numpy_datas = collect_data_files('numpy')
_pandas_datas = collect_data_files('pandas')
# ASGI/uvicorn family
_uvicorn_hidden = collect_submodules('uvicorn')
_starlette_hidden = collect_submodules('starlette')
_fastapi_hidden = collect_submodules('fastapi')
_anyio_hidden = collect_submodules('anyio')
_h11_hidden = collect_submodules('h11')
_websockets_hidden = collect_submodules('websockets')
a = Analysis(
['opencontext/cli.py'],
pathex=[],
binaries=[],
datas=[
('config/config.yaml', 'config'),
('opencontext/web/static', 'opencontext/web/static'),
('opencontext/web/templates', 'opencontext/web/templates'),
] + _numpy_datas + _pandas_datas,
hiddenimports=[
'uvicorn',
'uvicorn.config',
'uvicorn.server',
'uvicorn.protocols.http.auto',
'uvicorn.protocols.websockets.auto',
'chromadb.telemetry.product.posthog',
'chromadb.api.rust',
'chromadb.db.impl.sqlite',
'chromadb.db.impl.grpc',
'chromadb.segment.impl.vector.local_hnsw',
'chromadb.segment.impl.metadata.sqlite',
'hnswlib',
'sqlite3',
] + _numpy_hidden + _pandas_hidden + _uvicorn_hidden + _starlette_hidden + _fastapi_hidden + _anyio_hidden + _h11_hidden + _websockets_hidden,
hookspath=['.'],
hooksconfig={},
runtime_hooks=['hook-opencontext.py'],
excludes=[],
noarchive=False, # was True – this avoids importing numpy from a “source-like” dir
optimize=1,
)
pyz = PYZ(a.pure)
exe = EXE(
pyz,
a.scripts,
a.binaries,
a.datas,
[],
name='main',
debug=False,
bootloader_ignore_signals=False,
strip=not is_windows,
upx=False,
upx_exclude=[],
runtime_tmpdir=None,
console=True,
disable_windowed_traceback=False,
codesign_identity=None,
icon=None, # Disable icon to avoid Windows resource locking issues
)