-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
38 lines (33 loc) · 910 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
37
38
from setuptools import setup
import sys
import os
APP = 'src/TicTacToe.py'
APP_NAME = 'Tic-Tac-Toe'
VERSION = '0.2'
DATA = []
def build_with_py2app():
setup(
options=dict(
py2app=dict(
site_packages=True,
resources=DATA,
plist=dict(
CFBundleName = APP_NAME,
CFBundleShortVersionString = VERSION,
CFBundleGetInfoString = APP_NAME + ' ' + VERSION,
CFBundleExecutable = APP_NAME,
CFBundleIdentifier = 'com.zrbecker.' + APP_NAME,
),
),
),
app=[APP]
)
def build_with_py2exe():
pass
if __name__ == '__main__':
if 'py2app' in sys.argv:
build_with_py2app()
elif 'py2exe' in sys.argv:
build_with_py2exe()
else:
setup()