Skip to content

Commit 7fce209

Browse files
committed
proj: update build script to do a full scan for Cython to adapt to pyinstaller 6.13.0
1 parent 1ea05eb commit 7fce209

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

MagiaTimeline.spec

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,23 @@
33
from PyInstaller.utils.hooks import collect_all
44

55
paddleocr_datas, paddleocr_binaries, paddleocr_hiddenimports = collect_all('paddleocr')
6+
cython_datas, cython_binaries, cython_hiddenimports = collect_all('Cython')
67

78
a = Analysis(
89
['MagiaTimeline.py'],
910
pathex=[],
1011
binaries=[
1112
('venv/Lib/site-packages/paddle/libs/', 'paddle/libs/'),
12-
] + paddleocr_binaries,
13+
] + paddleocr_binaries + cython_binaries,
1314
datas=[
1415
('README.md', 'move_to_root'),
1516
('README-zh_CN.md', 'move_to_root'),
1617
('ConfigSchema.json', 'move_to_root'),
1718
('config.yml', 'move_to_root'),
1819
('template.asst', 'move_to_root'),
1920
('PaddleOCRModels/', 'move_to_root/PaddleOCRModels/'),
20-
] + paddleocr_datas,
21-
hiddenimports=[] + paddleocr_hiddenimports,
21+
] + paddleocr_datas + cython_datas,
22+
hiddenimports=[] + paddleocr_hiddenimports + cython_hiddenimports,
2223
hookspath=[],
2324
hooksconfig={},
2425
runtime_hooks=[],

0 commit comments

Comments
 (0)