-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
54 lines (43 loc) · 1.3 KB
/
setup.py
File metadata and controls
54 lines (43 loc) · 1.3 KB
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
# -*- coding: utf-8 -*-
"""
This is a setup.py script generated by py2applet
Usage:
python setup.py py2app
"""
import re
from setuptools import setup
NAME = 'Manami'
ICON = 'app.icns'
VERSION = '1.0.0'
INFO = 'Manami - Simple Game Skeleton for Python/SDL2'
COPYRIGHT = '© 2015 CreepyPanda Software'
IDENTIFIER = 'com.creepypanda.games.manami'
PLIST = {'CFBundleName': NAME,
'CFBundleIconFile': ICON,
'CFBundleVersion': VERSION,
'CFBundleExecutable': NAME,
'CFBundleGetInfoString': INFO,
'CFBundleIdentifier': IDENTIFIER,
'CFBundleShortVersionString': re.search(r'\d+\.\d+', VERSION).group(0),
'NSHumanReadableCopyright': COPYRIGHT}
APP = ['main.py']
DATA_FILES = [('', ['gfx',
'sfx'])]
INCLUDES = ['sdl2',
'sdl2.ext',
'sdl2.sdlimage',
'sdl2.sdlmixer']
FRAMEWORKS = ['/Library/Frameworks/SDL2.framework',
'/Library/Frameworks/SDL2_image.framework',
'/Library/Frameworks/SDL2_mixer.framework']
OPTIONS = {'argv_emulation': True,
'frameworks': FRAMEWORKS,
'includes': INCLUDES,
'iconfile': ICON,
'plist': PLIST}
setup(
app=APP,
data_files=DATA_FILES,
options={'py2app': OPTIONS},
setup_requires=['py2app']
)