-
Notifications
You must be signed in to change notification settings - Fork 13
/
setupmac.py
45 lines (33 loc) · 1.1 KB
/
setupmac.py
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
"""
py2app/py2exe build script for ALE
Will automatically ensure that all build prerequisites are available
via ez_setup
Usage (Mac OS X):
python setupmac.py py2app
Command Line Run:
./distmac/ALE.app/Contents/MacOS/ALE
"""
import sys
from setuptools import setup
import shutil
main = 'main.py'
inc = []
res = 'gui/skin'
exc = ['_gtkagg', '_tkagg', 'bsddb', 'curses', 'email', 'pywin.debugger',
'pywin.debugger.dbgcon', 'pywin.dialogs', 'tcl',
'Tkconstants', 'Tkinter']
extra_options = dict(
setup_requires=['py2app'],
app=[main],
options=dict(py2app=dict(argv_emulation=True,
optimize=1,
includes=inc,
resources=res,
excludes=exc,
iconfile='gui/skin/images/AppClient.icns'
))
)
setup(
name="AppClient",
**extra_options
)