forked from bumps/bumps
-
Notifications
You must be signed in to change notification settings - Fork 0
/
installer.spec
31 lines (29 loc) · 875 Bytes
/
installer.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
# -*- mode: python -*-
import sys
import os
import bumps
print "found bumps in %r"%bumps.__file__
version = str(bumps.__version__)
excludes = ['IPython.html','IPython.nbconvert','IPython.qt','IPython.testing',
'sphinx','docutils','jinja2',
]
a = Analysis(['bin/bumps_gui'],
pathex=[],
hookspath=['extra/installer-hooks'],
excludes=excludes,
runtime_hooks=None)
#print "\n".join("%s: %s"%(f[-1],", ".join(f[:-1])) for f in a.datas)
pyz = PYZ(a.pure)
exe = EXE(pyz,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
name='Bumps %s'%version,
debug=False,
strip=None,
upx=True,
console=False , icon='extra/bumps.icns')
app = BUNDLE(exe,
name='Bumps %s.app'%version,
icon='extra/bumps.icns')