Browse Source

py2exe build-script and resources for exe version.

master
Psychedelic Squid 8 years ago
parent
commit
78781feaa1
3 changed files with 75 additions and 0 deletions
  1. 2
    0
      build_exe.bat
  2. BIN
      res/identicurse.ico
  3. 73
    0
      setup_py2exe.py

+ 2
- 0
build_exe.bat View File

@@ -0,0 +1,2 @@
1
+REM This script is used to ensure -OO is added. Also, it is required on 64-bit Vista/7, as running it in XP compatibility mode is needed for a successful build there.
2
+python -OO setup_py2exe.py py2exe

BIN
res/identicurse.ico View File


+ 73
- 0
setup_py2exe.py View File

@@ -0,0 +1,73 @@
1
+#!/usr/bin/env python2
2
+# -*- coding: utf-8 -*-
3
+#
4
+# Copyright (C) 2010-2011 Reality <tinmachin3@gmail.com> and Psychedelic Squid <psquid@psquid.net>
5
+#
6
+# This program is free software: you can redistribute it and/or modify
7
+# it under the terms of the GNU General Public License as published by
8
+# the Free Software Foundation, either version 3 of the License, or
9
+# (at your option) any later version.
10
+#
11
+# This program is distributed in the hope that it will be useful,
12
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
+# GNU General Public License for more details.
15
+#
16
+# You should have received a copy of the GNU General Public License
17
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
18
+
19
+"""
20
+py2exe build script.
21
+"""
22
+
23
+__docformat__ = 'restructuredtext'
24
+
25
+from setuptools import setup, find_packages
26
+import py2exe
27
+
28
+setup(
29
+    name="identicurse",
30
+    version='0.7',  # 0.7-dev, but py2exe doesn't like the -dev bit.
31
+    description="A simple Identi.ca client with a curses-based UI.",
32
+    long_description=("A simple Identi.ca client with a curses-based UI."),
33
+    author="Psychedelic Squid and Reality",
34
+    author_email='psquid@psquid.net and tinmachin3@gmail.com',
35
+    url="http://identicurse.net/",
36
+
37
+    download_url=("http://identicurse.net/release/"),
38
+    license="GPLv3+",
39
+
40
+    data_files=[('identicurse',['README', 'conf/config.json'])],
41
+    packages=find_packages('src'),
42
+    package_dir={'': 'src'},
43
+    include_package_data=True,
44
+
45
+    entry_points={
46
+        'console_scripts':
47
+            ['identicurse = identicurse:main'],
48
+    },
49
+    
50
+    console=[{
51
+        "script": 'src/identicurse/__init__.py',
52
+        "icon_resources": [(1, 'res/identicurse.ico')],
53
+        "dest_base": 'identicurse',
54
+    }],
55
+    zipfile=None,
56
+    options={
57
+        "py2exe":
58
+            {
59
+                "compressed": 1,
60
+                "optimize": 2,
61
+                "ascii": 1,
62
+                "bundle_files": 1,
63
+                "packages": 'encodings, identicurse',
64
+                "includes": 'identicurse.config, identicurse.textbox, identicurse.helpers, identicurse.statusbar, identicurse.statusnet, identicurse.tabbage, identicurse.tabbar',
65
+            }
66
+    },
67
+
68
+    classifiers=[
69
+        'License :: OSI Approved :: GNU General Public License (GPL)',
70
+        'Development Status :: 5 - Production/Stable',
71
+        'Programming Language :: Python',
72
+    ],
73
+)

Loading…
Cancel
Save