root/branches/gajim_0.4/setup_win32.py

Revision 375, 1.9 kB (checked in by asterix, 4 years ago)

improvements for windows package

Line 
1##      setup_win32.py
2##
3## Gajim Team:
4##      - Yann Le Boulanger <asterix@lagaule.org>
5##      - Vincent Hanquez <tab@snarc.org>
6##
7##      Copyright (C) 2003-2005 Gajim Team
8##
9## This program is free software; you can redistribute it and/or modify
10## it under the terms of the GNU General Public License as published
11## by the Free Software Foundation; version 2 only.
12##
13## This program is distributed in the hope that it will be useful,
14## but WITHOUT ANY WARRANTY; without even the implied warranty of
15## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16## GNU General Public License for more details.
17##
18
19from distutils.core import setup
20import py2exe
21import glob
22
23includes = ["encodings",
24            "encodings.utf-8",]
25
26opts = {
27    "py2exe": {
28        "includes": "pango,atk,gobject,plugins,plugins.gtkgui,plugins.logger,encodings,encodings.*",
29        "dll_excludes": [
30            "iconv.dll","intl.dll","libatk-1.0-0.dll",
31            "libgdk_pixbuf-2.0-0.dll","libgdk-win32-2.0-0.dll",
32            "libglib-2.0-0.dll","libgmodule-2.0-0.dll",
33            "libgobject-2.0-0.dll","libgthread-2.0-0.dll",
34            "libgtk-win32-2.0-0.dll","libpango-1.0-0.dll",
35            "libpangowin32-1.0-0.dll"
36        ],
37    }
38}
39
40setup(
41    name = "Gajim",
42    description = "A jabber client",
43#    console=["gajim.py"],
44    windows = [{"script": "gajim.py",
45                "icon_resources": [(1, "gajim.ico")]}],
46    options=opts,
47    data_files=[("plugins/gtkgui", glob.glob("plugins/gtkgui/gtkgui.glade")),
48                ("plugins/gtkgui/icons/sun", glob.glob("plugins/gtkgui/icons/sun/*.*")),
49                ("plugins/gtkgui/emoticons", glob.glob("plugins/gtkgui/emoticons/*.*")),
50                ("plugins/gtkgui/pixmaps", glob.glob("plugins/gtkgui/pixmaps/*.*")),
51                ("Messages/fr/LC_MESSAGES", glob.glob("Messages/fr/LC_MESSAGES/*.mo"))
52    ],
53)
Note: See TracBrowser for help on using the browser.