48 lines
1.4 KiB
RPMSpec
48 lines
1.4 KiB
RPMSpec
# -*- mode: python ; coding: utf-8 -*-
|
||
|
||
|
||
a = Analysis(
|
||
['ui_app.py'],
|
||
pathex=[],
|
||
# 显式指定 conda 的 OpenSSL DLL(3.5.6,与 _ssl.pyd 匹配)。
|
||
# 若不指定,PyInstaller 会从 PATH 找到 MySQL Server 8.0 自带的 OpenSSL 3.0.15,
|
||
# 导致 _ssl 加载失败:DLL load failed while importing _ssl。
|
||
binaries=[
|
||
('C:\\Users\\Admin\\miniconda3\\Library\\bin\\libssl-3-x64.dll', '.'),
|
||
('C:\\Users\\Admin\\miniconda3\\Library\\bin\\libcrypto-3-x64.dll', '.'),
|
||
],
|
||
datas=[('config.yaml', '.'), ('configs', 'configs'), ('prompts', 'prompts'),
|
||
('templates', 'templates'), ('basemap', 'basemap'),
|
||
('material_library', 'material_library')],
|
||
# 注意:db/ 不打进 exe —— 运行时常读 exe 旁 db/spu_sku.db(用户可随时替换取最新)
|
||
hiddenimports=['pytrends', 'pytrends.request', 'PIL', 'openpyxl'],
|
||
hookspath=[],
|
||
hooksconfig={},
|
||
runtime_hooks=[],
|
||
excludes=[],
|
||
noarchive=False,
|
||
optimize=0,
|
||
)
|
||
pyz = PYZ(a.pure)
|
||
|
||
exe = EXE(
|
||
pyz,
|
||
a.scripts,
|
||
a.binaries,
|
||
a.datas,
|
||
[],
|
||
name='PODTrendAgent',
|
||
debug=False,
|
||
bootloader_ignore_signals=False,
|
||
strip=False,
|
||
upx=True,
|
||
upx_exclude=[],
|
||
runtime_tmpdir=None,
|
||
console=False,
|
||
disable_windowed_traceback=False,
|
||
argv_emulation=False,
|
||
target_arch=None,
|
||
codesign_identity=None,
|
||
entitlements_file=None,
|
||
)
|