Files
pod_trend_agent/PODTrendAgent.spec
T

55 lines
2.1 KiB
RPMSpec
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# -*- mode: python ; coding: utf-8 -*-
a = Analysis(
['ui_app.py'],
pathex=[],
# 显式指定 conda 的 OpenSSL DLL3.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'),
# Playwright 驱动(Node.js driver):Pinterest 爬取用 playwright 控制系统 Chrome。
# 冻结后 _driver.py 按 inspect.getfile(playwright)/driver 定位,必须放 playwright/driver。
('C:\\Users\\Admin\\Desktop\\test模版\\design_agent\\pod_trend_agent\\.venv\\Lib\\site-packages\\playwright\\driver', 'playwright/driver')],
# 注意:db/ 不打进 exe —— 运行时常读 exe 旁 db/spu_sku.db(用户可随时替换取最新)
hiddenimports=['pytrends', 'pytrends.request', 'PIL', 'openpyxl',
# Pinterest 参考模式:scraper 包 + playwright + 异步下载依赖
'pinterest_scraper', 'pinterest_scraper.scraper',
'pinterest_scraper.pinterest_image_capture',
'playwright', 'playwright.async_api', 'aiohttp', 'aiofiles'],
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,
)