Pyinstaller warning

- remove unnecessary includes
This commit is contained in:
Peter Šurda 2017-02-19 21:53:32 +01:00
parent 46a2c361de
commit 249a513630
Signed by untrusted user: PeterSurda
GPG Key ID: 0C5F50C0B5F37D87

View File

@ -6,7 +6,6 @@ qtPath = "C:\\Qt-4.8.7\\"
openSSLPath = "C:\\OpenSSL-1.0.2j\\" openSSLPath = "C:\\OpenSSL-1.0.2j\\"
outPath = "C:\\src\\PyInstaller-3.2.1\\bitmessagemain" outPath = "C:\\src\\PyInstaller-3.2.1\\bitmessagemain"
messagetypes = []
hiddenimports= [] hiddenimports= []
# manually add messagetypes directory and its listing # manually add messagetypes directory and its listing
@ -19,7 +18,6 @@ with open(os.path.join(srcPath, 'messagetypes.txt'), 'wt') as f:
continue continue
f.write(mt + "\n") f.write(mt + "\n")
hiddenimports.append('messagetypes.' + splitted[0]) hiddenimports.append('messagetypes.' + splitted[0])
messagetypes.append(mt)
# -*- mode: python -*- # -*- mode: python -*-
a = Analysis([srcPath + 'bitmessagemain.py'], a = Analysis([srcPath + 'bitmessagemain.py'],
@ -28,9 +26,6 @@ a = Analysis([srcPath + 'bitmessagemain.py'],
hookspath=None, hookspath=None,
runtime_hooks=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')) a.datas.append(('messagetypes.txt', os.path.join(srcPath, 'messagetypes.txt'), 'DATA'))
# fix duplicates # fix duplicates