os x options modified in setup script
[cake] / setup.py
1 from sys import platform
2
3
4 if __name__ == "__main__":
5 if platform == "darwin":
6 from setuptools import setup, find_packages
7 from lib.pgfw.pgfw.Configuration import Configuration
8 from lib.pgfw.pgfw.Setup import Setup
9 config = Configuration()
10 setup_obj = Setup()
11 version = config.get_section("setup")["version"]
12 name = setup_obj.translate_title()
13 plist = dict(
14 CFBundleIconFile=name,
15 CFBundleName=name,
16 CFBundleShortVersionString=version,
17 CFBundleGetInfoString=' '.join([name, version]),
18 CFBundleExecutable=name,
19 CFBundleIdentifier='org.' + name.lower())
20 setup(name=name,
21 version=version,
22 app=[dict(script="OPEN-GAME", plist=plist)],
23 setup_requires=["py2app"],
24 options=dict(py2app=dict(arch="i386",)),
25 data_files=["OPEN-GAME", "Cakewalk.py", "resource", "lib", "config"])
26 elif platform == "win32":
27 from lib.pgfw.pgfw.SetupWin import SetupWin
28 SetupWin().setup()
29 else:
30 from lib.pgfw.pgfw.Setup import Setup
31 Setup().setup()