429
|
1 # setup.py
|
|
2 # -*- coding: utf8 -*-
|
|
3 # vim:fileencoding=utf8 ai ts=4 sts=4 et sw=4
|
0
|
4
|
429
|
5 """Setuptools setup.py file for Mutable Mamba."""
|
0
|
6
|
429
|
7 from setuptools import setup, find_packages
|
0
|
8
|
|
9 try:
|
430
|
10 import py2exe # pyflakes:ignore
|
429
|
11 except ImportError:
|
|
12 pass
|
0
|
13
|
561
|
14 # This should probably be pulled from constants.py
|
|
15 VERSION_STR = "0.2"
|
0
|
16
|
582
|
17 setup(
|
|
18 name="mutable-mamba",
|
|
19 version=VERSION_STR,
|
|
20 description="Mutable Mamba: Snake game for PyWeek 13",
|
0
|
21
|
582
|
22 author=("Adrianna Pinska, Desilu Crossman, Gideon Visser, "
|
|
23 "Jeremy Thurgood, Neil Muller, Simon Cross, "
|
|
24 "Stefano Rivera"),
|
|
25 author_email="",
|
0
|
26
|
582
|
27 maintainer="Mamba Team",
|
|
28 maintainer_email="ctpug@googlegroups.com",
|
0
|
29
|
582
|
30 url="http://ctpug.org.za/",
|
585
|
31 download_url="https://hg.ctpug.org.za/mamba/",
|
0
|
32
|
582
|
33 license="MIT",
|
0
|
34
|
582
|
35 classifiers=[
|
|
36 'Development Status :: 4 - Beta',
|
|
37 'Environment :: MacOS X',
|
|
38 'Environment :: Win32 (MS Windows)',
|
|
39 'Environment :: X11 Applications',
|
|
40 'Intended Audience :: End Users/Desktop',
|
|
41 'License :: OSI Approved :: MIT License',
|
|
42 'Natural Language :: English',
|
|
43 'Operating System :: Microsoft :: Windows',
|
|
44 'Operating System :: POSIX',
|
|
45 'Operating System :: MacOS :: MacOS X',
|
|
46 'Programming Language :: Python :: 2.5',
|
|
47 'Programming Language :: Python :: 2.6',
|
|
48 'Topic :: Games/Entertainment :: Role-Playing',
|
|
49 'Topic :: Games/Entertainment :: Arcade',
|
|
50 ],
|
0
|
51
|
582
|
52 platforms=[
|
|
53 'Linux',
|
|
54 'Mac OS X',
|
|
55 'Windows',
|
|
56 ],
|
0
|
57
|
582
|
58 # Dependencies
|
|
59 install_requires=[],
|
0
|
60
|
582
|
61 # Files
|
|
62 packages=find_packages(),
|
|
63 scripts=[
|
|
64 'scripts/mamba',
|
|
65 ],
|
0
|
66
|
582
|
67 # py2exe
|
|
68 console=['scripts/testconsole.py'],
|
|
69 windows=[{
|
|
70 'script': 'scripts/mamba',
|
|
71 'icon_resources': [(0, "data/icons/program/icon.ico")],
|
|
72 }],
|
|
73 app=['scripts/mamba'],
|
|
74 options={
|
|
75 'py2exe': {
|
|
76 'skip_archive': 1,
|
|
77 'dist_dir': 'dist/mutable-mamba-%s' % VERSION_STR,
|
|
78 'packages': [
|
|
79 'logging', 'encodings', 'mamba',
|
|
80 ],
|
|
81 'includes': [
|
|
82 # pygame
|
|
83 'pygame',
|
|
84 ],
|
|
85 'excludes': [
|
|
86 'numpy',
|
|
87 ],
|
|
88 'ignores': [
|
|
89 # all database modules
|
|
90 'pgdb', 'Sybase', 'adodbapi',
|
|
91 'kinterbasdb', 'psycopg', 'psycopg2', 'pymssql',
|
|
92 'sapdb', 'pysqlite2', 'sqlite', 'sqlite3',
|
|
93 'MySQLdb', 'MySQLdb.connections',
|
|
94 'MySQLdb.constants.CR', 'MySQLdb.constants.ER',
|
|
95 # old datetime equivalents
|
|
96 'DateTime', 'DateTime.ISO',
|
|
97 'mx', 'mx.DateTime', 'mx.DateTime.ISO',
|
|
98 # email modules
|
|
99 'email.Generator', 'email.Iterators', 'email.Utils',
|
|
100 ],
|
|
101 },
|
|
102 'py2app': {
|
|
103 'app': ['run_game.py'],
|
|
104 'argv_emulation': True,
|
|
105 'iconfile': 'data/icons/program/icon.icns',
|
|
106 'packages': [
|
|
107 'logging', 'encodings', 'pygame', 'mamba', 'data',
|
|
108 ],
|
|
109 'excludes': ['numpy'],
|
|
110 }
|
|
111 },
|
|
112 include_package_data=True,
|
|
113 )
|