3 # vim:fileencoding=utf8 ai ts=4 sts=4 et sw=4
5 """Setuptools setup.py file for Robolock II."""
7 from setuptools import setup, find_packages
8 from setuptools.command.sdist import sdist
9 from setuptools.command.install import install
11 from tools import gen_json
15 py2exe # To make pyflakes happy.
19 # This should probably be pulled from constants.py
23 class NajaSdist(sdist):
29 class NajaInstall(install):
31 gen_json.main(update=False)
38 description="Robolock II - a puzzle game",
48 author_email="ctpug@googlegroups.com",
50 maintainer="Team Naja (CTPUG)",
51 maintainer_email="ctpug@googlegroups.com",
53 url="http://robolock.org/",
54 download_url="http://ctpug.org.za/git/naja",
59 'Development Status :: 4 - Beta',
60 'Environment :: MacOS X',
61 'Environment :: Win32 (MS Windows)',
62 'Environment :: X11 Applications',
63 'Intended Audience :: End Users/Desktop',
64 'License :: OSI Approved :: MIT License',
65 'Natural Language :: English',
66 'Operating System :: Microsoft :: Windows',
67 'Operating System :: POSIX',
68 'Operating System :: MacOS :: MacOS X',
69 'Programming Language :: Python :: 2.6',
70 'Programming Language :: Python :: 2.7',
71 'Topic :: Games/Entertainment',
90 packages=find_packages(),
97 'install': NajaInstall,
102 'script': 'scripts/naja',
103 'icon_resources': [(0, "data/icons/robolock.ico")],
105 app=['scripts/naja'],
109 'dist_dir': 'dist/naja-%s' % VERSION_STR,
111 'logging', 'encodings', 'naja',
117 'numpy', 'pygame.sdlmain_osx', 'winreg', 'AppKit', 'Foundation',
118 'Numeric', 'OpenGL.GL', '_scproxy', '_sysconfigdata',
119 'copyreg', 'dummy.Process', 'pkg_resources', 'queue',
120 'win32evtlog', 'win32evtlogutil',
123 # all database modules
124 'pgdb', 'Sybase', 'adodbapi',
125 'kinterbasdb', 'psycopg', 'psycopg2', 'pymssql',
126 'sapdb', 'pysqlite2', 'sqlite', 'sqlite3',
127 'MySQLdb', 'MySQLdb.connections',
128 'MySQLdb.constants.CR', 'MySQLdb.constants.ER',
129 # old datetime equivalents
130 'DateTime', 'DateTime.ISO',
131 'mx', 'mx.DateTime', 'mx.DateTime.ISO',
133 'email.Generator', 'email.Iterators', 'email.Utils',
137 'app': ['run_game.py'],
138 'argv_emulation': True,
139 'iconfile': 'data/icons/program/icon.icns',
141 'logging', 'encodings', 'pygame', 'naja', 'data',
143 'excludes': ['numpy'],
150 include_package_data=True,