/
setup.py
36 lines (30 loc) · 902 Bytes
/
setup.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
"""
Usage (Mac):
python setup.py py2app
Usage (Windows):
python setup.py py2exe
"""
import sys
mainscript = 'Adventure.py'
OPTIONS = dict(
argv_emulation=True,
frameworks=['libavbin.dylib'],
plist = dict(CFBundleIconFile='spacetrain.icns'),
# PyRuntimeLocations=['/Library/Frameworks/Python.framework/Versions/2.7/Python']
#, '/System/Library/Frameworks/Python.framework/Versions/Current/Python'])
)
if sys.platform == 'darwin':
from setuptools import setup
extra_options = dict(
setup_requires=['py2app'],
app=[mainscript],
# Cross-platform applications generally expect sys.argv to
# be used for opening files.
options={'py2app': OPTIONS},
)
setup(
name='Space Train',
data_files=['engine','resources', 'game', 'spacetrain.icns',
'glydget', 'yaml', 'pyglet'],
**extra_options
)