Mercurial > pyntnclick
annotate setup.py @ 472:cab67fd696b9
Fix crash bug on the bridge. (JIM's panel really doesn't like items.)
author | Jeremy Thurgood <firxen@gmail.com> |
---|---|
date | Sun, 29 Aug 2010 03:51:23 +0200 |
parents | eebd6e08cbc9 |
children | 60c345d19daf |
rev | line source |
---|---|
102 | 1 # setup.py |
2 # -*- coding: utf8 -*- | |
3 # vim:fileencoding=utf8 ai ts=4 sts=4 et sw=4 | |
4 | |
5 """Setuptools setup.py file for Suspended Sentence.""" | |
6 | |
7 from setuptools import setup, find_packages | |
8 from gamelib import version | |
9 | |
10 try: | |
11 import py2exe | |
12 except ImportError: | |
13 pass | |
14 | |
15 setup ( # Metadata | |
16 name = version.NAME, | |
17 version = version.VERSION_STR, | |
18 description = version.DESCRIPTION, | |
19 | |
20 author = version.AUTHOR_NAME, | |
21 author_email = version.AUTHOR_EMAIL, | |
22 | |
23 maintainer = version.MAINTAINER_NAME, | |
24 maintainer_email = version.MAINTAINER_EMAIL, | |
25 | |
26 # url = version.SOURCEFORGE_URL, | |
27 # download_url = version.PYPI_URL, | |
28 | |
186
f15c4f7c24e6
Windows builder (works under Wine).
Simon Cross <simon@simonx>
parents:
102
diff
changeset
|
29 license = version.LICENSE, |
102 | 30 |
186
f15c4f7c24e6
Windows builder (works under Wine).
Simon Cross <simon@simonx>
parents:
102
diff
changeset
|
31 classifiers = version.CLASSIFIERS, |
102 | 32 |
186
f15c4f7c24e6
Windows builder (works under Wine).
Simon Cross <simon@simonx>
parents:
102
diff
changeset
|
33 platforms = version.PLATFORMS, |
102 | 34 |
35 # Dependencies | |
36 install_requires = version.INSTALL_REQUIRES, | |
37 | |
38 # Files | |
39 packages = find_packages(), | |
40 scripts = ['run_game.py'], | |
41 | |
42 # py2exe | |
186
f15c4f7c24e6
Windows builder (works under Wine).
Simon Cross <simon@simonx>
parents:
102
diff
changeset
|
43 console = ['scripts/testconsole.py'], |
f15c4f7c24e6
Windows builder (works under Wine).
Simon Cross <simon@simonx>
parents:
102
diff
changeset
|
44 windows = [{ |
f15c4f7c24e6
Windows builder (works under Wine).
Simon Cross <simon@simonx>
parents:
102
diff
changeset
|
45 'script': 'scripts/suspended.py', |
458
e32505d48f99
Link windows icon file.
Simon Cross <hodgestar+bzr@gmail.com>
parents:
186
diff
changeset
|
46 'icon_resources': [(0, "Resources/icons/suspended_sentence.ico")], |
186
f15c4f7c24e6
Windows builder (works under Wine).
Simon Cross <simon@simonx>
parents:
102
diff
changeset
|
47 }], |
102 | 48 app = ['run_game.py'], |
49 options = { | |
186
f15c4f7c24e6
Windows builder (works under Wine).
Simon Cross <simon@simonx>
parents:
102
diff
changeset
|
50 'py2exe': { |
f15c4f7c24e6
Windows builder (works under Wine).
Simon Cross <simon@simonx>
parents:
102
diff
changeset
|
51 'skip_archive': 1, |
f15c4f7c24e6
Windows builder (works under Wine).
Simon Cross <simon@simonx>
parents:
102
diff
changeset
|
52 'dist_dir': 'dist/suspended-sentence-%s' % version.VERSION_STR, |
f15c4f7c24e6
Windows builder (works under Wine).
Simon Cross <simon@simonx>
parents:
102
diff
changeset
|
53 'packages': [ |
f15c4f7c24e6
Windows builder (works under Wine).
Simon Cross <simon@simonx>
parents:
102
diff
changeset
|
54 'logging', 'encodings', 'gamelib', |
f15c4f7c24e6
Windows builder (works under Wine).
Simon Cross <simon@simonx>
parents:
102
diff
changeset
|
55 ], |
f15c4f7c24e6
Windows builder (works under Wine).
Simon Cross <simon@simonx>
parents:
102
diff
changeset
|
56 'includes': [ |
f15c4f7c24e6
Windows builder (works under Wine).
Simon Cross <simon@simonx>
parents:
102
diff
changeset
|
57 # pygame |
f15c4f7c24e6
Windows builder (works under Wine).
Simon Cross <simon@simonx>
parents:
102
diff
changeset
|
58 'pygame', 'albow', |
f15c4f7c24e6
Windows builder (works under Wine).
Simon Cross <simon@simonx>
parents:
102
diff
changeset
|
59 ], |
f15c4f7c24e6
Windows builder (works under Wine).
Simon Cross <simon@simonx>
parents:
102
diff
changeset
|
60 'excludes': [ |
f15c4f7c24e6
Windows builder (works under Wine).
Simon Cross <simon@simonx>
parents:
102
diff
changeset
|
61 'numpy', |
f15c4f7c24e6
Windows builder (works under Wine).
Simon Cross <simon@simonx>
parents:
102
diff
changeset
|
62 ], |
f15c4f7c24e6
Windows builder (works under Wine).
Simon Cross <simon@simonx>
parents:
102
diff
changeset
|
63 'ignores': [ |
f15c4f7c24e6
Windows builder (works under Wine).
Simon Cross <simon@simonx>
parents:
102
diff
changeset
|
64 # all database modules |
f15c4f7c24e6
Windows builder (works under Wine).
Simon Cross <simon@simonx>
parents:
102
diff
changeset
|
65 'pgdb', 'Sybase', 'adodbapi', |
f15c4f7c24e6
Windows builder (works under Wine).
Simon Cross <simon@simonx>
parents:
102
diff
changeset
|
66 'kinterbasdb', 'psycopg', 'psycopg2', 'pymssql', |
f15c4f7c24e6
Windows builder (works under Wine).
Simon Cross <simon@simonx>
parents:
102
diff
changeset
|
67 'sapdb', 'pysqlite2', 'sqlite', 'sqlite3', |
f15c4f7c24e6
Windows builder (works under Wine).
Simon Cross <simon@simonx>
parents:
102
diff
changeset
|
68 'MySQLdb', 'MySQLdb.connections', |
f15c4f7c24e6
Windows builder (works under Wine).
Simon Cross <simon@simonx>
parents:
102
diff
changeset
|
69 'MySQLdb.constants.CR', 'MySQLdb.constants.ER', |
f15c4f7c24e6
Windows builder (works under Wine).
Simon Cross <simon@simonx>
parents:
102
diff
changeset
|
70 # old datetime equivalents |
f15c4f7c24e6
Windows builder (works under Wine).
Simon Cross <simon@simonx>
parents:
102
diff
changeset
|
71 'DateTime', 'DateTime.ISO', |
f15c4f7c24e6
Windows builder (works under Wine).
Simon Cross <simon@simonx>
parents:
102
diff
changeset
|
72 'mx', 'mx.DateTime', 'mx.DateTime.ISO', |
f15c4f7c24e6
Windows builder (works under Wine).
Simon Cross <simon@simonx>
parents:
102
diff
changeset
|
73 # email modules |
f15c4f7c24e6
Windows builder (works under Wine).
Simon Cross <simon@simonx>
parents:
102
diff
changeset
|
74 'email.Generator', 'email.Iterators', 'email.Utils', |
f15c4f7c24e6
Windows builder (works under Wine).
Simon Cross <simon@simonx>
parents:
102
diff
changeset
|
75 ], |
f15c4f7c24e6
Windows builder (works under Wine).
Simon Cross <simon@simonx>
parents:
102
diff
changeset
|
76 }, |
102 | 77 'py2app': { |
78 'argv_emulation': 1, | |
462
eebd6e08cbc9
Mac icons hooked up, chops added and engine fix message fixed.
Jeremy Thurgood <firxen@gmail.com>
parents:
458
diff
changeset
|
79 'iconfile': 'Resources/icons/suspended_sentence.icns', |
186
f15c4f7c24e6
Windows builder (works under Wine).
Simon Cross <simon@simonx>
parents:
102
diff
changeset
|
80 # 'dist_dir': 'dist/suspended-sentence-%s' % version.VERSION_STR, |
102 | 81 # 'bdist_base': 'build/bdist', |
82 'packages': [ | |
83 'logging', 'encodings', 'pygame', 'albow', 'gamelib', 'Resources', | |
84 ], | |
85 'excludes': ['numpy'], | |
86 }}, | |
87 data_files = [ | |
88 # 'COPYRIGHT', | |
89 'COPYING', | |
90 'README.txt', | |
91 ], | |
92 ) |