61 lines
1.5 KiB
Python
61 lines
1.5 KiB
Python
# -*- mode: python ; coding: utf-8 -*-
|
|
|
|
|
|
a = Analysis(
|
|
['src\\grid_trading\\app.py'],
|
|
pathex=['src'],
|
|
binaries=[],
|
|
datas=[('assets\\app_icon.ico', 'assets')],
|
|
hiddenimports=[],
|
|
hookspath=[],
|
|
hooksconfig={},
|
|
runtime_hooks=[],
|
|
excludes=[],
|
|
noarchive=False,
|
|
optimize=0,
|
|
)
|
|
|
|
# Qt 6 on Windows uses the ICU compatibility DLLs provided by the operating
|
|
# system. The Codex runtime also puts Poppler's private ICU 78 directory on
|
|
# PATH, which can make PyInstaller collect those incompatible DLLs by name.
|
|
# If bundled, they shadow Windows' ICU DLLs and PySide6.QtCore fails to load
|
|
# with ERROR_PROC_NOT_FOUND during startup.
|
|
_excluded_runtime_dlls = {
|
|
"icuuc.dll",
|
|
"icudt78.dll",
|
|
# Windows 10 already supplies the Universal CRT. Bundling another copy
|
|
# makes the one-file process load both the system and private ucrtbase,
|
|
# which can corrupt native heaps when Qt objects cross DLL boundaries.
|
|
"ucrtbase.dll",
|
|
}
|
|
a.binaries = [
|
|
entry
|
|
for entry in a.binaries
|
|
if entry[0].replace("\\", "/").rsplit("/", 1)[-1].lower()
|
|
not in _excluded_runtime_dlls
|
|
]
|
|
|
|
pyz = PYZ(a.pure)
|
|
|
|
exe = EXE(
|
|
pyz,
|
|
a.scripts,
|
|
a.binaries,
|
|
a.datas,
|
|
[],
|
|
name='GridTrading',
|
|
debug=False,
|
|
bootloader_ignore_signals=False,
|
|
strip=False,
|
|
upx=True,
|
|
upx_exclude=[],
|
|
icon=['assets\\app_icon.ico'],
|
|
runtime_tmpdir=None,
|
|
console=False,
|
|
disable_windowed_traceback=False,
|
|
argv_emulation=False,
|
|
target_arch=None,
|
|
codesign_identity=None,
|
|
entitlements_file=None,
|
|
)
|