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