Exclude pkg_resources

Avoids deprecation warning at run-time (https://github.com/pyinstaller/pyinstaller/issues/9149).
Exclude Java Temurin binaries (from GitHub windows-latest image).
This commit is contained in:
oldnapalm
2025-05-30 18:35:30 -03:00
parent e17b653acd
commit 7d44a6985d

View File

@@ -14,11 +14,12 @@ a = Analysis(['standalone.py'],
hiddenimports=[],
hookspath=[],
runtime_hooks=[],
excludes=['FixTk', 'tcl', 'tk', '_tkinter', 'tkinter', 'Tkinter'],
excludes=['FixTk', 'tcl', 'tk', '_tkinter', 'tkinter', 'Tkinter', 'pkg_resources'],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher,
noarchive=False)
a.binaries = [x for x in a.binaries if not 'Java_Temurin' in x[1]]
a.datas += Tree('cdn', prefix='cdn')
pyz = PYZ(a.pure, a.zipped_data,
cipher=block_cipher)
@@ -33,7 +34,7 @@ exe = EXE(pyz,
bootloader_ignore_signals=False,
strip=False,
upx=True,
upx_exclude=['greenlet\\*.pyd', '_uuid.pyd', 'python3.dll', 'api-ms-win-*.dll'],
upx_exclude=['greenlet\\*.pyd', '_uuid.pyd', 'python3.dll'],
runtime_tmpdir=None,
console=True )