Commit 8b8517af by Yuhaibo

refactor: 优化PyInstaller打包配置排除项

- 添加pytest和sphinx等开发工具到排除列表
- 排除PyQt6、PySide2/6等未使用的Qt绑定库
- 排除OpenGL相关可选依赖以减小打包体积
parent bff52fc0
...@@ -123,6 +123,20 @@ a = Analysis( ...@@ -123,6 +123,20 @@ a = Analysis(
'IPython', 'IPython',
'notebook', 'notebook',
'tensorboard', 'tensorboard',
'pytest',
'sphinx',
# 排除PyQt6(只使用PyQt5)
'PyQt6',
'PyQt6.QtCore',
'PyQt6.QtGui',
'PyQt6.QtWidgets',
# 排除其他Qt绑定
'PySide2',
'PySide6',
# 排除OpenGL相关(pyqtgraph的可选依赖)
'OpenGL',
'OpenGL_accelerate',
'pyqtgraph.opengl',
], ],
win_no_prefer_redirects=False, win_no_prefer_redirects=False,
win_private_assemblies=False, win_private_assemblies=False,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment