From 249a513630b15cb277efb3d1f3c454233e2efa72 Mon Sep 17 00:00:00 2001 From: Peter Surda Date: Sun, 19 Feb 2017 21:53:32 +0100 Subject: [PATCH] Pyinstaller warning - remove unnecessary includes --- packages/pyinstaller/bitmessagemain.spec | 5 ----- 1 file changed, 5 deletions(-) diff --git a/packages/pyinstaller/bitmessagemain.spec b/packages/pyinstaller/bitmessagemain.spec index c26325c3..1f568f33 100644 --- a/packages/pyinstaller/bitmessagemain.spec +++ b/packages/pyinstaller/bitmessagemain.spec @@ -6,7 +6,6 @@ qtPath = "C:\\Qt-4.8.7\\" openSSLPath = "C:\\OpenSSL-1.0.2j\\" outPath = "C:\\src\\PyInstaller-3.2.1\\bitmessagemain" -messagetypes = [] hiddenimports= [] # manually add messagetypes directory and its listing @@ -19,7 +18,6 @@ with open(os.path.join(srcPath, 'messagetypes.txt'), 'wt') as f: continue f.write(mt + "\n") hiddenimports.append('messagetypes.' + splitted[0]) - messagetypes.append(mt) # -*- mode: python -*- a = Analysis([srcPath + 'bitmessagemain.py'], @@ -28,9 +26,6 @@ a = Analysis([srcPath + 'bitmessagemain.py'], hookspath=None, runtime_hooks=None) -for mt in messagetypes: - a.scripts.append((os.path.join('messagetypes', mt), os.path.join(srcPath, 'messagetypes', mt), 'PYMODULE')) - a.datas.append(('messagetypes.txt', os.path.join(srcPath, 'messagetypes.txt'), 'DATA')) # fix duplicates