Add missed py2exe script entry
[tabakrolletjie.git] / setup.py
1 from setuptools import setup, find_packages
2
3 try:
4     import py2exe
5     py2exe  # To make pyflakes happy.
6 except ImportError:
7     pass
8
9
10 setup(
11     name="tabakrolletjie",
12     version="1.0.0",
13     url='http://ctpug.org.za/gitweb/tabakrolletjie',
14     license='BSD',
15     description="An entry for Pyweek 22.",
16     long_description=open('README.txt', 'r').read(),
17     author='CTPUG',
18     author_email='ctpug@googlegroups.com',
19     packages=find_packages(),
20     include_package_data=True,
21     install_requires=[
22         'pygame',
23         'pymunk',
24     ],
25     classifiers=[
26         'Development Status :: 4 - Beta',
27         'Intended Audience :: End Users/Desktop',
28         'License :: OSI Approved :: ISC License (ISCL)',
29         'Operating System :: POSIX',
30         'Operating System :: Microsoft :: Windows',
31         'Programming Language :: Python',
32         'Programming Language :: Python :: 2.7',
33         'Topic :: Games/Entertainment',
34     ],
35     # py2exe
36     windows=[{
37         'script': 'scripts/tabakrolletjie',
38         'icon_resources': [(0, "data/images/icons/tabakrolletjie_icon.ico")],
39     }],
40     options={
41         'py2exe': {
42             'skip_archive': 1,
43             'dist_dir': 'dist/tabakrolletjie-1.0.0',
44             'packages': [
45                 'logging', 'encodings', 'tabakrolletjie',
46             ],
47             'includes': [
48                 'pygame', 'pymunk',
49             ],
50             'excludes': [
51                 'numpy',
52             ],
53             'ignores': [
54                 # all database modules
55                 'pgdb', 'Sybase', 'adodbapi',
56                 'kinterbasdb', 'psycopg', 'psycopg2', 'pymssql',
57                 'sapdb', 'pysqlite2', 'sqlite', 'sqlite3',
58                 'MySQLdb', 'MySQLdb.connections',
59                 'MySQLdb.constants.CR', 'MySQLdb.constants.ER',
60                 # old datetime equivalents
61                 'DateTime', 'DateTime.ISO',
62                 'mx', 'mx.DateTime', 'mx.DateTime.ISO',
63                 # email modules
64                 'email.Generator', 'email.Iterators', 'email.Utils',
65             ],
66         },
67     }
68 )