-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py2exe.py
105 lines (101 loc) · 4.13 KB
/
setup.py2exe.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
# -*- coding: utf-8 -*-
#
###
# Application: wah!cade
# File: setup.py
# Description: setup file
# Copyright (c) 2005-2010 Andy Balcombe <http://www.anti-particle.com>
###
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Library General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
from distutils.core import setup
import py2exe
import glob
from constants import *
#don't include any of the gtk runtime dll's
py2exe_opts = {
"py2exe": {
"includes": "pango,atk,gobject,cairo,pangocairo",
"dll_excludes": [
"iconv.dll",
"intl.dll",
"libatk-1.0-0.dll",
"libgdk_pixbuf-2.0-0.dll",
"libgdk-win32-2.0-0.dll",
"libglib-2.0-0.dll",
"libgmodule-2.0-0.dll",
"libgobject-2.0-0.dll",
"libgthread-2.0-0.dll",
"libgtk-win32-2.0-0.dll",
"libpango-1.0-0.dll",
"libpangowin32-1.0-0.dll",
"libglade-2.0-0.dll",
"libcairo-2.dll",
"libfontconfig-1.dll",
"libfreetype-6.dll",
"libpng12.dll",
"libpangocairo-1.0-0.dll",
"libpangoft2-1.0-0.dll"],
}
}
#distutils stuff
setup(
name = 'Wah!Cade',
description = 'Wah!Cade - A nice, keyboard controlled frontend for arcade emulators',
version = VERSION,
author = 'Andy Balcombe',
author_email = '[email protected]',
url = 'http://www.anti-particle.com/wahcade',
#scripts = ['wahcade.py', 'wahcade-setup.py', 'wahcade-layout-editor.py'],
windows = [
({'script': 'wahcade.py', 'icon_resources': [(1, "pixmaps/wahcade.ico")]}),
({'script': 'wahcade-setup.py', 'icon_resources': [(1, "pixmaps/wahcade.ico")]}),
({'script': 'wahcade-layout-editor.py', 'icon_resources': [(1, "pixmaps/wahcade.ico")]})
],
options = py2exe_opts,
data_files = [
("config.dist", glob.glob("config.dist/*.*")),
("config.dist/ctrlr", glob.glob("config.dist/ctrlr/*.*")),
("config.dist/files", glob.glob("config.dist/files/*.*")),
("config.dist/ini", glob.glob("config.dist/ini/*.*")),
("config.dist/layouts", glob.glob("config.dist/layouts/*.*")),
("config.dist/layouts/classic_640x480", glob.glob("config.dist/layouts/classic_640x480/*.*")),
("config.dist/layouts/classic_800x600", glob.glob("config.dist/layouts/classic_800x600/*.*")),
("config.dist/layouts/classic_1024x768", glob.glob("config.dist/layouts/classic_1024x768/*.*")),
("config.dist/layouts/cpviewer", glob.glob("config.dist/layouts/cpviewer/*.*")),
("doc", glob.glob("doc/[A-Z]*")),
("doc/samples", glob.glob("doc/samples/*")),
("doc/xmame", glob.glob("doc/xmame/*")),
("doc/file_formats", glob.glob("doc/file_formats/*")),
("glade", glob.glob("glade/*.*")),
("pixmaps", glob.glob("pixmaps/*.png")),
("pixmaps", glob.glob("pixmaps/*.ico")),
("templates", glob.glob("templates/*.ini"))
],
classifiers = [
'Development Status :: 4 - Beta',
'Environment :: X11 Applications :: GTK',
'Intended Audience :: End Users/Desktop',
'License :: OSI Approved :: GNU General Public License (GPL)',
'Natural Language :: English',
'Operating System :: MacOS :: MacOS X',
'Operating System :: Microsoft :: Windows :: Windows NT/2000',
'Operating System :: POSIX :: BSD :: FreeBSD',
'Operating System :: POSIX :: Linux',
'Programming Language :: Python',
'Topic :: Games/Entertainment :: Arcade'
]
)