8000 update: spec · devcxl/llama-cpp-python@099dbf1 · GitHub
[go: up one dir, main page]

Skip to content

Commit 099dbf1

Browse files
authored
update: spec
1 parent 18f6942 commit 099dbf1

File tree

3 files changed

+48
-3
lines changed

3 files changed

+48
-3
lines changed

.github/workflows/test.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,11 @@ jobs:
2727
python3 -m pip install .[all] -v
2828
python3 -m pip install pyinstaller
2929
- name: Build package
30-
run: pyinstaller --onefile llama_cpp/server/__main__.py --name llama-server
30+
run: pyinstaller wechatbot.spec
3131
- name: upload artifact
3232
uses: actions/upload-artifact@v3
3333
with:
3434
name: llama-server
35-
path: dist/*
35+
path: |
36+
dist/*
37+

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ MANIFEST
4747
# Usually these files are written by a python script from a template
4848
# before PyInstaller builds the exe, so as to inject date/other infos into it.
4949
*.manifest
50-
*.spec
5150

5251
# Installer logs
5352
pip-log.txt

llama-server.spec

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# -*- mode: python ; coding: utf-8 -*-
2+
3+
4+
block_cipher = None
5+
6+
7+
a = Analysis(
8+
['llama_cpp/server/__main__.py'],
9+
pathex=['llama_cpp/llama.py'],
10+
binaries=[('/home/runner/work/llama-cpp-python/llama-cpp-python/llama_cpp/libllama.so','.')],
11+
datas=[],
12+
hiddenimports=[],
13+
hookspath=[],
14+
hooksconfig={},
15+
runtime_hooks=[],
16+
excludes=[],
17+
win_no_prefer_redirects=False,
18+
win_private_assemblies=False,
19+
cipher=block_cipher,
20+
noarchive=False,
21+
)
22+
pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher)
23+
24+
exe = EXE(
25+
pyz,
26+
a.scripts,
27+
a.binaries,
28+
a.zipfiles,
29+
a.datas,
30+
[],
31+
name='llama-server',
32+
debug=True,
33+
bootloader_ignore_signals=False,
34+
strip=False,
35+
upx=True,
36+
upx_exclude=[],
37+
runtime_tmpdir=None,
38+
console=True,
39+
disable_windowed_traceback=False,
40+
argv_emulation=False,
41+
target_arch=None,
42+
codesign_identity=None,
43+
entitlements_file=None,
44+
)

0 commit comments

Comments
 (0)
0