66 lines
1.7 KiB
Python
66 lines
1.7 KiB
Python
# -*- mode: python ; coding: utf-8 -*-
|
|
from PyInstaller.utils.hooks import collect_all
|
|
|
|
datas = []
|
|
binaries = []
|
|
hiddenimports = [
|
|
'pandas', 'numpy', 'yfinance', 'requests',
|
|
'lxml', 'lxml.etree', 'html5lib', 'bs4',
|
|
'appdirs', 'platformdirs',
|
|
'tkinter', 'tkinter.ttk', 'tkinter.messagebox',
|
|
'screener_gui', 'stock_screener',
|
|
'matplotlib', 'matplotlib.backends.backend_tkagg',
|
|
'matplotlib.figure', 'matplotlib.dates', 'matplotlib.ticker',
|
|
'winreg',
|
|
'hwid', 'license_check', 'activation_dialog', 'updater',
|
|
]
|
|
|
|
tmp_ret = collect_all('yfinance')
|
|
datas += tmp_ret[0]; binaries += tmp_ret[1]; hiddenimports += tmp_ret[2]
|
|
|
|
tmp_ret = collect_all('matplotlib')
|
|
datas += tmp_ret[0]; binaries += tmp_ret[1]; hiddenimports += tmp_ret[2]
|
|
|
|
tmp_ret = collect_all('pandas')
|
|
datas += tmp_ret[0]; binaries += tmp_ret[1]; hiddenimports += tmp_ret[2]
|
|
|
|
|
|
a = Analysis(
|
|
['launcher.py'],
|
|
pathex=[],
|
|
binaries=binaries,
|
|
datas=datas,
|
|
hiddenimports=hiddenimports,
|
|
hookspath=[],
|
|
hooksconfig={},
|
|
runtime_hooks=[],
|
|
excludes=[],
|
|
noarchive=False,
|
|
optimize=0,
|
|
)
|
|
|
|
# Bytecode encryption key (requires tinyaes + PyInstaller 5.x)
|
|
# If your PyInstaller version does not support this, remove the key= line.
|
|
pyz = PYZ(a.pure, cipher=None) # swap cipher=None for cipher=block_cipher if using --key
|
|
|
|
exe = EXE(
|
|
pyz,
|
|
a.scripts,
|
|
a.binaries,
|
|
a.datas,
|
|
[],
|
|
name='StockScreener',
|
|
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,
|
|
)
|