-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathgui.spec
75 lines (66 loc) · 2.41 KB
/
gui.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# -*- mode: python ; coding: utf-8 -*-
"""
pathogenie spec file for pathogenie.
Created Nov 2019
Copyright (C) Damien Farrell
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 3
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
"""
block_cipher = None
a = Analysis(['main.py'],
binaries=[('win_binaries/*', 'bin')],
hiddenimports=['Bio.SearchIO.HmmerIO'],
hookspath=[],
runtime_hooks=[],
excludes=['PIL','tkinter','lib2to3','pywin.debugger', 'pywin.debugger.dbgcon'],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher,
noarchive=False,
datas=[ ('pathogenie/logo.png', 'pathogenie/'),
('pathogenie/data/*', 'pathogenie/data/') ])
pyz = PYZ(a.pure, a.zipped_data,
cipher=block_cipher)
#remove some files we don't need
exclude = ['Qt53D','Qt5Quick','Qt5Web','Qt5Multimedia',
'sqlite3','d3dcompiler']
def remove_from_list(input, keys):
outlist = []
for item in input:
name, _, _ = item
flag = 0
for key_word in keys:
if name.find(key_word) > -1:
flag = 1
if flag != 1:
outlist.append(item)
return outlist
a.binaries = remove_from_list(a.binaries, exclude)
exe = EXE(pyz,
a.scripts,
[],
exclude_binaries=True,
name='pathogenie.exe',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
console=True,
icon='img/logo.ico' )
coll = COLLECT(exe,
a.binaries,
a.zipfiles,
a.datas,
strip=False,
upx=True,
upx_exclude=[],
name='pathogenie')