1 ## setup_win32.py (run me as python setup_win32.py py2exe -O2)
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>
7 ## This file is part of Gajim.
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.
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.
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/>.
22 from distutils
.core
import setup
29 def fill_docutils_files(folder
, base
=u
'docutils'):
30 docutils_files
.append((base
, glob
.glob(os
.path
.join(folder
, base
, '*.pyc'))))
31 for path
in os
.listdir(os
.path
.join(folder
, base
)):
32 if os
.path
.isdir(os
.path
.join(folder
, base
, path
)):
33 fill_docutils_files(folder
, base
=os
.path
.join(base
, path
))
36 import docutils
.readers
37 import docutils
.writers
.html4css1
38 import docutils
.languages
42 fill_docutils_files(os
.path
.join(sys
.prefix
, 'Lib', 'site-packages'))
43 docutils_files
.append((os
.path
.join('docutils', 'writers', 'html4css1'),
44 glob
.glob(os
.path
.join(sys
.prefix
, 'Lib', 'site-packages', 'docutils',
45 'writers', 'html4css1', '*.css'))))
47 sys
.path
.append('src')
48 # Use local gtk folder instead of the one in PATH that is not latest gtk
49 if 'gtk' in os
.listdir('.'):
50 sys
.path
.append('gtk/bin')
54 # ConfigParser,UserString,roman are needed for docutils
55 'includes': 'pango,atk,gobject,cairo,pangocairo,gtk.keysyms,encodings,encodings.*,ConfigParser,UserString',
57 'iconv.dll','intl.dll','libatk-1.0-0.dll',
58 'libgdk_pixbuf-2.0-0.dll','libgdk-win32-2.0-0.dll',
59 'libglib-2.0-0.dll','libgmodule-2.0-0.dll',
60 'libgobject-2.0-0.dll','libgthread-2.0-0.dll',
61 'libgtk-win32-2.0-0.dll','libpango-1.0-0.dll',
62 'libpangowin32-1.0-0.dll','libcairo-2.dll',
63 'libpangocairo-1.0-0.dll','libpangoft2-1.0-0.dll',
75 description
= 'A full featured Jabber client',
76 author
= 'Gajim Development Team',
77 url
= 'http://www.gajim.org/',
78 download_url
= 'http://www.gajim.org/downloads.php',
81 windows
= [{'script': 'src/gajim.py',
82 'icon_resources': [(1, 'data/pixmaps/gajim.ico')]},
83 {'script': 'src/history_manager.py',
84 'icon_resources': [(1, 'data/pixmaps/gajim.ico')]}],
87 data_files
=docutils_files
,