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.
20 # This should probably be pulled from constants.py
21 # These two constants are used by darwin-py2app.sh.
23 NAME_STR = "robolock-II"
26 class NajaSdist(sdist):
32 class NajaInstall(install):
34 gen_json.main(update=False)
41 description="Robolock II - a puzzle game",
51 author_email="ctpug@googlegroups.com",
53 maintainer="Team Naja (CTPUG)",
54 maintainer_email="ctpug@googlegroups.com",
56 url="http://robolock.org/",
57 download_url="http://ctpug.org.za/git/naja",
62 'Development Status :: 4 - Beta',
63 'Environment :: MacOS X',
64 'Environment :: Win32 (MS Windows)',
65 'Environment :: X11 Applications',
66 'Intended Audience :: End Users/Desktop',
67 'License :: OSI Approved :: MIT License',
68 'Natural Language :: English',
69 'Operating System :: Microsoft :: Windows',
70 'Operating System :: POSIX',
71 'Operating System :: MacOS :: MacOS X',
72 'Programming Language :: Python :: 2.6',
73 'Programming Language :: Python :: 2.7',
74 'Topic :: Games/Entertainment',
93 packages=find_packages(),
100 'install': NajaInstall,
105 'script': 'scripts/naja',
106 'icon_resources': [(0, "data/icons/robolock.ico")],
108 app=['scripts/naja'],
112 'dist_dir': 'dist/naja-%s' % VERSION_STR,
114 'logging', 'encodings', 'naja',
120 'numpy', 'pygame.sdlmain_osx', 'winreg', 'AppKit',
121 'Foundation', 'Numeric', 'OpenGL.GL', '_scproxy',
122 '_sysconfigdata', 'copyreg', 'dummy.Process', 'pkg_resources',
123 'queue', 'win32evtlog', 'win32evtlogutil',
126 # all database modules
127 'pgdb', 'Sybase', 'adodbapi',
128 'kinterbasdb', 'psycopg', 'psycopg2', 'pymssql',
129 'sapdb', 'pysqlite2', 'sqlite', 'sqlite3',
130 'MySQLdb', 'MySQLdb.connections',
131 'MySQLdb.constants.CR', 'MySQLdb.constants.ER',
132 # old datetime equivalents
133 'DateTime', 'DateTime.ISO',
134 'mx', 'mx.DateTime', 'mx.DateTime.ISO',
136 'email.Generator', 'email.Iterators', 'email.Utils',
140 'app': ['run_game.py'],
141 'argv_emulation': True,
142 'iconfile': 'data/icons/robolock.icns',
144 'logging', 'encodings', 'pygame', 'naja', 'data',
146 'excludes': ['numpy'],
153 include_package_data=True,