source: setup.py@ 632:ef7018eaaec2

Last change on this file since 632:ef7018eaaec2 was 632:ef7018eaaec2, checked in by Simon Cross <hodgestar@…>, 9 years ago

Update setup.py

  • Property exe set to *
File size: 3.6 KB
Line 
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 nagslang."""
6
7from setuptools import setup, find_packages
8
9try:
10 import py2exe
11 py2exe # To make pyflakes happy.
12except ImportError:
13 pass
14
15try:
16 from pip.req import parse_requirements
17 import os
18 game_dir = os.path.dirname(__file__)
19 req_file = os.path.join(game_dir, 'requirements.txt')
20 install_reqs = parse_requirements(req_file)
21 reqs = [str(ir.req) for ir in install_reqs]
22except ImportError:
23 reqs = []
24
25# This should probably be pulled from constants.py
26VERSION_STR = "0.1a"
27
28setup(
29 name="nagslang",
30 version=VERSION_STR,
31 description="naglsang: Game for PyWeek 17",
32
33 author=(", ".join([
34 "Simon Cross",
35 "David Fraser",
36 "Neil Muller",
37 "Adrianna Pinska",
38 "Stefano Rivera",
39 "David Sharpe",
40 "Jeremy Thurgood",
41 ])),
42 author_email="ctpug@googlegroups.com",
43
44 maintainer="Nagslang Team",
45 maintainer_email="ctpug@googlegroups.com",
46
47 url="http://ctpug.org.za/",
48 download_url="https://ctpug.org.za/hg/nagslang/",
49
50 license="MIT",
51
52 classifiers=[
53 'Development Status :: 4 - Beta',
54 'Environment :: MacOS X',
55 'Environment :: Win32 (MS Windows)',
56 'Environment :: X11 Applications',
57 'Intended Audience :: End Users/Desktop',
58 'License :: OSI Approved :: MIT License',
59 'Natural Language :: English',
60 'Operating System :: Microsoft :: Windows',
61 'Operating System :: POSIX',
62 'Operating System :: MacOS :: MacOS X',
63 'Programming Language :: Python :: 2.5',
64 'Programming Language :: Python :: 2.6',
65 'Topic :: Games/Entertainment :: Role-Playing',
66 'Topic :: Games/Entertainment :: Arcade',
67 ],
68
69 platforms=[
70 'Linux',
71 'Mac OS X',
72 'Windows',
73 ],
74
75 # Dependencies
76 install_requires=reqs,
77
78 # Files
79 packages=find_packages(),
80 scripts=[
81 'scripts/nagslang',
82 ],
83
84 # py2exe
85 console=['scripts/testconsole.py'],
86 windows=[{
87 'script': 'scripts/nagslang',
88 'icon_resources': [(0, "data/icons/program/icon.ico")],
89 }],
90 app=['scripts/nagslang'],
91 options={
92 'py2exe': {
93 'skip_archive': 1,
94 'dist_dir': 'dist/nagslang-%s' % VERSION_STR,
95 'packages': [
96 'logging', 'encodings', 'nagslang',
97 ],
98 'includes': [
99 'pygame', 'pymunk',
100 ],
101 'excludes': [
102 'numpy',
103 ],
104 'ignores': [
105 # all database modules
106 'pgdb', 'Sybase', 'adodbapi',
107 'kinterbasdb', 'psycopg', 'psycopg2', 'pymssql',
108 'sapdb', 'pysqlite2', 'sqlite', 'sqlite3',
109 'MySQLdb', 'MySQLdb.connections',
110 'MySQLdb.constants.CR', 'MySQLdb.constants.ER',
111 # old datetime equivalents
112 'DateTime', 'DateTime.ISO',
113 'mx', 'mx.DateTime', 'mx.DateTime.ISO',
114 # email modules
115 'email.Generator', 'email.Iterators', 'email.Utils',
116 ],
117 },
118 'py2app': {
119 'app': ['run_game.py'],
120 'argv_emulation': True,
121 'iconfile': 'data/icons/program/icon.icns',
122 'packages': [
123 'logging', 'encodings', 'pygame', 'pymunk', 'nagslang', 'data',
124 ],
125 'excludes': ['numpy'],
126 }},
127 data_files=[
128 # 'COPYRIGHT',
129 'LICENSE.txt',
130 'README.txt',
131 ],
132 include_package_data=True,
133)
Note: See TracBrowser for help on using the repository browser.