root/branches/gajim_0.11.3-bugfixes/setup_win32.py

Revision 9452, 2.1 kB (checked in by asterix, 5 months ago)
Line 
1## setup_win32.py (run me as python setup_win32.py py2exe -O2)
2##
3## Copyright (C) 2003-2006 Yann Le Boulanger <asterix@lagaule.org>
4## Copyright (C) 2005-2006 Nikos Kouremenos <kourem@gmail.com>
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
8## by the Free Software Foundation; version 2 only.
9##
10## This program is distributed in the hope that it will be useful,
11## but WITHOUT ANY WARRANTY; without even the implied warranty of
12## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13## GNU General Public License for more details.
14##
15
16from distutils.core import setup
17import py2exe
18import glob
19import sys
20
21sys.path.append('src')
22# Use local gtk folder instead of the one in PATH that is not latest gtk
23sys.path.append('gtk/bin')
24includes = ['encodings', 'encodings.utf-8',]
25
26opts = {
27    'py2exe': {
28        'includes': 'pango,atk,gobject,cairo,pangocairo,gtk.keysyms,encodings,encodings.*,docutils.readers.*,docutils.writers.html4css1',
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','libcairo-2.dll',
36            'libpangocairo-1.0-0.dll','libpangoft2-1.0-0.dll',
37        ],
38    }
39}
40
41setup(
42    name = 'Gajim',
43    version = '0.11.4',
44    description = 'A full featured Jabber client',
45    author = 'Gajim Development Team',
46    url = 'http://www.gajim.org/',
47    download_url = 'http://www.gajim.org/downloads.php',
48    license = 'GPL',
49   
50    windows = [{'script': 'src/gajim.py',
51                'icon_resources': [(1, 'data/pixmaps/gajim.ico')]},
52               {'script': 'src/history_manager.py',
53                'icon_resources': [(1, 'data/pixmaps/gajim.ico')]}],
54    options=opts,
55
56    data_files=[('.', glob.glob('src/gtkgui.glade')),
57                ('.', glob.glob('src/history_manager.glade')),
58    ],
59)
Note: See TracBrowser for help on using the browser.