Document windows 7 permissions workaround
[tabakrolletjie.git] / setup.py
index 009c3442b025efc852cb152ff24d3cc01acd6389..8fbaa7932c227a867f23ca6d396dc22c666a2c9f 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -1,8 +1,15 @@
 from setuptools import setup, find_packages
 
+try:
+    import py2exe
+    py2exe  # To make pyflakes happy.
+except ImportError:
+    pass
+
+
 setup(
     name="tabakrolletjie",
-    version="0.0.1",
+    version="1.0.0",
     url='http://ctpug.org.za/gitweb/tabakrolletjie',
     license='BSD',
     description="An entry for Pyweek 22.",
@@ -25,4 +32,37 @@ setup(
         'Programming Language :: Python :: 2.7',
         'Topic :: Games/Entertainment',
     ],
+    # py2exe
+    windows=[{
+        'script': 'scripts/tabakrolletjie',
+        'icon_resources': [(0, "data/images/icons/tabakrolletjie_icon.ico")],
+    }],
+    options={
+        'py2exe': {
+            'skip_archive': 1,
+            'dist_dir': 'dist/tabakrolletjie-1.0.0',
+            'packages': [
+                'logging', 'encodings', 'tabakrolletjie',
+            ],
+            'includes': [
+                'pygame', 'pymunk',
+            ],
+            'excludes': [
+                'numpy',
+            ],
+            'ignores': [
+                # all database modules
+                'pgdb', 'Sybase', 'adodbapi',
+                'kinterbasdb', 'psycopg', 'psycopg2', 'pymssql',
+                'sapdb', 'pysqlite2', 'sqlite', 'sqlite3',
+                'MySQLdb', 'MySQLdb.connections',
+                'MySQLdb.constants.CR', 'MySQLdb.constants.ER',
+                # old datetime equivalents
+                'DateTime', 'DateTime.ISO',
+                'mx', 'mx.DateTime', 'mx.DateTime.ISO',
+                # email modules
+                'email.Generator', 'email.Iterators', 'email.Utils',
+            ],
+        },
+    }
 )