root/trunk/setup_win32.py

Revision 10247, 2.7 kB (checked in by roidelapluie, 2 weeks ago)
  • Big headers review
  • Remove some licencing problems
  • To do: same for images
  • See #4200
Line 
1## setup_win32.py (run me as python setup_win32.py py2exe -O2)
2##
3## Copyright (C) 2003-2008 Yann Leboulanger <asterix AT lagaule.org>
4## Copyright (C) 2005-2006 Nikos Kouremenos <kourem AT gmail.com>
5## Copyright (C) 2008 Jonathan Schleifer <js-gajim AT webkeks.org>
6##
7## This file is part of Gajim.
8##
9## Gajim 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 3 only.
12##
13## Gajim 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## You should have received a copy of the GNU General Public License
19## along with Gajim. If not, see <http://www.gnu.org/licenses/>.
20##
21
22from distutils.core import setup
23import py2exe
24import glob
25import sys
26import os
27
28sys.path.append('src')
29# Use local gtk folder instead of the one in PATH that is not latest gtk
30if 'gtk' in os.listdir('.'):
31    sys.path.append('gtk/bin')
32includes = ['encodings', 'encodings.utf-8',]
33
34opts = {
35    'py2exe': {
36        'includes': 'pango,atk,gobject,cairo,pangocairo,gtk.keysyms,encodings,encodings.*,docutils.readers.*,docutils.writers.html4css1',
37        'dll_excludes': [
38            'iconv.dll','intl.dll','libatk-1.0-0.dll',
39            'libgdk_pixbuf-2.0-0.dll','libgdk-win32-2.0-0.dll',
40            'libglib-2.0-0.dll','libgmodule-2.0-0.dll',
41            'libgobject-2.0-0.dll','libgthread-2.0-0.dll',
42            'libgtk-win32-2.0-0.dll','libpango-1.0-0.dll',
43            'libpangowin32-1.0-0.dll','libcairo-2.dll',
44            'libpangocairo-1.0-0.dll','libpangoft2-1.0-0.dll',
45        ],
46    }
47}
48
49try:
50        import docutils.readers
51except ImportError:
52        opts['py2exe']['includes'] = \
53                opts['py2exe']['includes'].replace(',docutils.readers.*', '')
54
55try:
56        import docutils.writers.html4css1
57except ImportError:
58        opts['py2exe']['includes'] = \
59                opts['py2exe']['includes'].replace(',docutils.writers.html4css1', '')
60
61setup(
62    name = 'Gajim',
63    version = '0.12-alpha1',
64    description = 'A full featured Jabber client',
65    author = 'Gajim Development Team',
66    url = 'http://www.gajim.org/',
67    download_url = 'http://www.gajim.org/downloads.php',
68    license = 'GPL',
69   
70    windows = [{'script': 'src/gajim.py',
71                'icon_resources': [(1, 'data/pixmaps/gajim.ico')]},
72               {'script': 'src/history_manager.py',
73                'icon_resources': [(1, 'data/pixmaps/gajim.ico')]}],
74    options=opts,
75
76    data_files=[('.', glob.glob('src/gtkgui.glade')),
77                ('.', glob.glob('src/history_manager.glade')),
78    ],
79)
80
81# vim: se ts=3:
Note: See TracBrowser for help on using the browser.