forked from containers/ramalama
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathramalama.spec
More file actions
126 lines (115 loc) · 3.15 KB
/
ramalama.spec
File metadata and controls
126 lines (115 loc) · 3.15 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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
# -*- mode: python ; coding: utf-8 -*-
"""
PyInstaller spec file for building standalone RamaLama executable on macOS.
This creates a single executable that includes Python and all dependencies,
eliminating the need for users to install Python separately.
Build with: pyinstaller ramalama.spec
"""
import sys
from pathlib import Path
# Import version dynamically
sys.path.insert(0, str(Path.cwd() / 'ramalama'))
from version import version as get_version
# Get the project root directory
project_root = Path.cwd()
# Get version dynamically
app_version = get_version()
# Collect all ramalama package files
a = Analysis(
['bin/ramalama'],
pathex=[str(project_root)],
binaries=[],
datas=[
# Include shortnames configuration
('shortnames/shortnames.conf', 'share/ramalama'),
# Include ramalama.conf
('docs/ramalama.conf', 'share/ramalama'),
# Include completions
('completions/bash-completion/completions/*', 'share/bash-completion/completions'),
('completions/fish/vendor_completions.d/*', 'share/fish/vendor_completions.d'),
('completions/zsh/site-functions/*', 'share/zsh/site-functions'),
# Include man pages
('docs/*.1', 'share/man/man1'),
('docs/*.5', 'share/man/man5'),
('docs/*.7', 'share/man/man7'),
],
hiddenimports=[
'ramalama',
'ramalama.cli',
'ramalama.version',
'ramalama.common',
'ramalama.config',
'ramalama.engine',
'ramalama.kube',
'ramalama.quadlet',
'ramalama.rag',
'ramalama.stack',
'ramalama.chat',
'ramalama.compose',
'ramalama.http_client',
'ramalama.daemon',
'ramalama.mcp',
'ramalama.model_store',
'ramalama.transports',
'ramalama.file_loaders',
'argcomplete',
'yaml',
'jsonschema',
'jinja2',
],
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=[
'tkinter',
'matplotlib',
'numpy',
'scipy',
'pandas',
'PIL',
],
noarchive=False,
)
pyz = PYZ(a.pure)
exe = EXE(
pyz,
a.scripts,
[],
exclude_binaries=True,
name='ramalama',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=False, # Disabled for Apple Silicon compatibility
console=True,
disable_windowed_traceback=False,
argv_emulation=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None,
)
coll = COLLECT(
exe,
a.binaries,
a.datas,
strip=False,
upx=False,
upx_exclude=[],
name='ramalama',
)
app = BUNDLE(
coll,
name='ramalama.app',
icon='logos/ICNS/ramalama.icns',
bundle_identifier='com.github.containers.ramalama',
version=app_version,
info_plist={
'CFBundleName': 'RamaLama',
'CFBundleDisplayName': 'RamaLama',
'CFBundleIdentifier': 'com.github.containers.ramalama',
'CFBundleVersion': app_version,
'CFBundleShortVersionString': app_version,
'NSHumanReadableCopyright': 'Copyright © 2026 The Containers Organization',
'CFBundleExecutable': 'ramalama',
},
)