root/branches/gajim_0.7/setup_win32.py

Revision 1475, 2.5 kB (checked in by asterix, 4 years ago)

setup_win32.py is now ready for 0.7

Line 
1## setup_win32.py (run me as python setup_win32.py py2exe)
2##
3## Gajim Team:
4## - Yann Le Boulanger <asterix@lagaule.org>
5## - Vincent Hanquez <tab@snarc.org>
6##      - Nikos Kouremenos <kourem@gmail.com>
7##
8## Copyright (C) 2003-2005 Gajim Team
9##
10## This program is free software; you can redistribute it and/or modify
11## it under the terms of the GNU General Public License as published
12## by the Free Software Foundation; version 2 only.
13##
14## This program is distributed in the hope that it will be useful,
15## but WITHOUT ANY WARRANTY; without even the implied warranty of
16## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17## GNU General Public License for more details.
18##
19
20from distutils.core import setup
21import py2exe
22import glob
23import sys
24
25sys.path.append('src')
26includes = ['encodings', 'encodings.utf-8',]
27
28opts = {
29    'py2exe': {
30        'includes': 'pango,atk,gobject,encodings,encodings.*',
31        'dll_excludes': [
32            'iconv.dll','intl.dll','libatk-1.0-0.dll',
33            'libgdk_pixbuf-2.0-0.dll','libgdk-win32-2.0-0.dll',
34            'libglib-2.0-0.dll','libgmodule-2.0-0.dll',
35            'libgobject-2.0-0.dll','libgthread-2.0-0.dll',
36            'libgtk-win32-2.0-0.dll','libpango-1.0-0.dll',
37            'libpangowin32-1.0-0.dll'
38        ],
39        'optimize': '2', # python -OO
40    }
41}
42
43setup(
44    name = 'Gajim',
45    version = '0.7',
46    description = 'A Jabber client written in PyGTK',
47    windows = [{'script': 'src/gajim.py',
48                'icon_resources': [(1, 'gajim.ico')]}],
49    options=opts,
50
51    data_files=[('.', glob.glob('src/gtkgui.glade')),
52                ('data/iconsets/sun', glob.glob('data/iconsets/sun/*.*')),
53                ('data/iconsets/stellar', glob.glob('data/iconsets/stellar/*.*')),
54                ('data/iconsets/gossip', glob.glob('data/iconsets/gossip/*.*')),
55                ('data/iconsets/transports/aim', glob.glob('data/iconsets/transports/aim/*.*')),
56                ('data/iconsets/transports/gadugadu', glob.glob('data/iconsets/transports/gadugadu/*.*')),
57                ('data/iconsets/transports/icq', glob.glob('data/iconsets/transports/icq/*.*')),
58                ('data/iconsets/transports/msn', glob.glob('data/iconsets/transports/msn/*.*')),
59                ('data/iconsets/transports/yahoo', glob.glob('data/iconsets/transports/yahoo/*.*')),
60                ('data/emoticons', glob.glob('data/emoticons/*.*')),
61                ('data/pixmaps', glob.glob('data/pixmaps/*.*')),
62                ('data/sounds', glob.glob('data/sounds/*.*'))
63    ],
64)
Note: See TracBrowser for help on using the browser.