forked from DataMedSci/mcpartools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.spec
43 lines (36 loc) · 1.34 KB
/
main.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
# -*- mode: python -*-
# add current dir to PYTHONPATH, to enable importing mcpartools package
import sys
import os
DIR = os.path.realpath(".")
sys.path.append(DIR)
import mcpartools
# get version string
version = mcpartools.__version__
# hardcode the version in the __init__ file
with open(os.path.join('mcpartools', '__init__.py'), "a") as fd:
fd.write("\n__version__ = \'{:s}\'".format(version))
# one file installation, nice but application has a slow start as each execution is related to unpacking of ~10MB archive
a = Analysis([os.path.join('mcpartools','generatemc.py')],
pathex=['.'],
binaries=[],
datas=[ ('mcpartools/mcengine/data/*', 'mcpartools/mcengine/data' ),
('mcpartools/scheduler/data/*', 'mcpartools/scheduler/data' )],
hiddenimports=['appdirs', 'packaging', 'packaging.version', 'packaging.specifiers', 'packaging.requirements'],
hookspath=[],
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=None)
pyz = PYZ(a.pure)
exe = EXE(pyz,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
name='generatemc',
debug=False,
strip=False,
upx=False,
console=False )