forked from HDFGroup/hdf-compass
-
Notifications
You must be signed in to change notification settings - Fork 0
/
HDFCompass.spec
46 lines (42 loc) · 1.79 KB
/
HDFCompass.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
##############################################################################
# Copyright by The HDF Group. #
# All rights reserved. #
# #
# This file is part of the HDF Compass Viewer. The full HDF Compass #
# copyright notice, including terms governing use, modification, and #
# terms governing use, modification, and redistribution, is contained in #
# the file COPYING, which can be found at the root of the source code #
# distribution tree. If you do not have access to this file, you may #
# request a copy from [email protected]. #
##############################################################################
# Builds a single-file EXE for distribution.
# Note that an "unbundled" distribution launches much more quickly, but
# requires an installer program to distribute.
#
# To compile, execute the following within the source directory:
#
# python /path/to/pyinstaller.py HDFCompass.spec
#
# The resulting .exe file is placed in the dist/ folder.
a = Analysis(['HDFCompass.py'],
pathex=[],
hiddenimports=[],
hookspath=None,
runtime_hooks=None)
# The following block is necessary to prevent a hard crash when launching
# the resulting .exe file
for d in a.datas:
if 'pyconfig' in d[0]:
a.datas.remove(d)
break
pyz = PYZ(a.pure)
exe = EXE(pyz,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
name='HDFCompass.exe',
debug=False,
strip=None,
upx=False,
console=False , icon='compass.ico')