-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
37 lines (32 loc) · 919 Bytes
/
setup.py
File metadata and controls
37 lines (32 loc) · 919 Bytes
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
#!/usr/bin/env python
"""
setup.py - workaround for wxPython 2.4.x
Usage:
% python setup.py py2app
"""
# import macholib_patch
from distutils.core import setup
import py2app
from glob import glob
APP = ['mmind_app.py'] #main file of your app
DATA_FILES = [
('img', glob('img/*.png')),
('icons', glob('icons/*.png'))
]
OPTIONS = {'argv_emulation': True,
'site_packages': True,
'arch': 'i386',
# 'iconfile': 'lan.icns', #if you want to add some ico
'plist': {
'CFBundleName': 'Mastermind',
'CFBundleShortVersionString':'1.0.0', # must be in X.X.X format
'CFBundleVersion': '1.0.0',
'CFBundleDevelopmentRegion': 'English', #optional - English is default
}
}
setup(
app=APP,
data_files=DATA_FILES,
options={'py2app': OPTIONS},
setup_requires=['py2app'],
)