forked from PmagPy/PmagPy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpmag_gui.spec
58 lines (52 loc) · 1.89 KB
/
pmag_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
# -*- mode: python -*-
# this is an example.spec file
import os
import sys
from pmagpy import version
sys.setrecursionlimit(30000)
app_name = "pmag_gui_{}".format(version.version[7:])
current_dir = os.getcwd()
block_cipher = None
files = [('{}/pmagpy/data_model/*.json'.format(current_dir), './pmagpy/data_model/'),
('{}/dialogs/help_files/*.html'.format(current_dir), './dialogs/help_files')
]
a = Analysis(['programs/pmag_gui.py'],
pathex=[current_dir],
binaries=[],
datas=files,
hiddenimports=[ 'scipy.misc',
'scipy.datasets',
'scipy.odr',
'scipy.io', 'scipy.fftpack',
'scipy.cluster','scipy.optimize', 'scipy.interpolate',
'scipy._lib.messagestream',
'pandas._libs.tslibs.timedeltas',
'pandas.concat', 'wget', 'pkg_resources.py2_warn'],
hooksconfig={
"matplotlib": {
"backends": "all", # collect all backends
},
},
hookspath=[],
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher)
pyz = PYZ(a.pure, a.zipped_data,
cipher=block_cipher)
exe = EXE(pyz,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
#name='pmag_gui',
name=app_name,
debug=False,
strip=False,
upx=True,
console=False, icon='./programs/images/pmagpy_logo.ico')
app = BUNDLE(exe,
name=app_name + ".app",
icon='./programs/images/pmagpy_logo.ico',
bundle_identifier=None)