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
|
|
29 # license = version.LICENSE,
|
|
30
|
|
31 # classifiers = version.CLASSIFIERS,
|
|
32
|
|
33 # platforms = version.PLATFORMS,
|
|
34
|
|
35 # Dependencies
|
|
36 install_requires = version.INSTALL_REQUIRES,
|
|
37
|
|
38 # Files
|
|
39 packages = find_packages(),
|
|
40 scripts = ['run_game.py'],
|
|
41
|
|
42 # py2exe
|
|
43 # console = ['scripts/testconsole.py'],
|
|
44 # windows = [{
|
|
45 # 'script': 'scripts/foxassault.py',
|
|
46 # 'icon_resources': [(0, "data/icons/foxassault.ico")],
|
|
47 # }],
|
|
48 app = ['run_game.py'],
|
|
49 options = {
|
|
50 # 'py2exe': {
|
|
51 # 'skip_archive': 1,
|
|
52 # 'dist_dir': 'dist/foxassault-%s' % version.VERSION_STR,
|
|
53 # 'packages': [
|
|
54 # 'logging', 'encodings',
|
|
55 # ],
|
|
56 # 'includes': [
|
|
57 # # pygame
|
|
58 # 'pygame', 'pgu',
|
|
59 # ],
|
|
60 # 'excludes': [
|
|
61 # 'numpy',
|
|
62 # ],
|
|
63 # 'ignores': [
|
|
64 # # all database modules
|
|
65 # 'pgdb', 'Sybase', 'adodbapi',
|
|
66 # 'kinterbasdb', 'psycopg', 'psycopg2', 'pymssql',
|
|
67 # 'sapdb', 'pysqlite2', 'sqlite', 'sqlite3',
|
|
68 # 'MySQLdb', 'MySQLdb.connections',
|
|
69 # 'MySQLdb.constants.CR', 'MySQLdb.constants.ER',
|
|
70 # # old datetime equivalents
|
|
71 # 'DateTime', 'DateTime.ISO',
|
|
72 # 'mx', 'mx.DateTime', 'mx.DateTime.ISO',
|
|
73 # # email modules
|
|
74 # 'email.Generator', 'email.Iterators', 'email.Utils',
|
|
75 # ],
|
|
76 # },
|
|
77 'py2app': {
|
|
78 'argv_emulation': 1,
|
|
79 # 'iconfile': 'data/icons/foxassault.icns',
|
|
80 # 'dist_dir': 'dist/foxassault-%s' % version.VERSION_STR,
|
|
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 )
|