excluding unneeded tkinter module in spec files

This commit is contained in:
uh_wot 2020-05-26 12:49:48 +02:00
parent d189e72c20
commit 5ba4ac2bb1
2 changed files with 8 additions and 4 deletions

View file

@ -1,10 +1,11 @@
# -*- mode: python ; coding: utf-8 -*-
import deemix
import sys
from os.path import dirname
from sys import platform
block_cipher = None
sys.modules['FixTk'] = None
a = Analysis(['deemix_gui.py'],
binaries=[],
@ -12,7 +13,7 @@ a = Analysis(['deemix_gui.py'],
hiddenimports=['engineio.async_drivers.threading', 'pkg_resources.py2_warn'],
hookspath=[],
runtime_hooks=[],
excludes=[],
excludes=['FixTk', 'tcl', 'tk', '_tkinter', 'tkinter', 'Tkinter'],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher,
@ -28,7 +29,7 @@ exe = EXE(pyz,
bootloader_ignore_signals=False,
strip=False,
upx=True,
console=True, icon=f"icon.{'icns' if platform.startswith('darwin') else 'ico'}" )
console=True, icon=f"icon.{'icns' if sys.platform.startswith('darwin') else 'ico'}" )
coll = COLLECT(exe,
a.binaries,
a.zipfiles,

View file

@ -1,16 +1,19 @@
# -*- mode: python ; coding: utf-8 -*-
import deemix
import sys
from os.path import dirname
block_cipher = None
sys.modules['FixTk'] = None
a = Analysis(['server.py'],
binaries=[],
datas=[('webui/public', 'webui/public'), (f'{dirname(deemix.__file__)}/app/default.json','deemix/app')],
hiddenimports=['engineio.async_drivers.threading', 'pkg_resources.py2_warn'],
hookspath=[],
runtime_hooks=[],
excludes=[],
excludes=['FixTk', 'tcl', 'tk', '_tkinter', 'tkinter', 'Tkinter'],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher,