1 ## setup_win32.py (run me as python setup_win32.py py2exe -O2)
3 ## Copyright (C) 2003-2010 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,'
56 'encodings,encodings.*,ConfigParser,UserString'),
58 'iconv.dll', 'intl.dll', 'libatk-1.0-0.dll',
59 'libgdk_pixbuf-2.0-0.dll', 'libgdk-win32-2.0-0.dll',
60 'libglib-2.0-0.dll', 'libgmodule-2.0-0.dll',
61 'libgobject-2.0-0.dll', 'libgthread-2.0-0.dll',
62 'libgtk-win32-2.0-0.dll', 'libpango-1.0-0.dll',
63 'libpangowin32-1.0-0.dll', 'libcairo-2.dll',
64 'libpangocairo-1.0-0.dll', 'libpangoft2-1.0-0.dll',
77 description
='A full featured Jabber client',
78 author
='Gajim Development Team',
79 url
='http://www.gajim.org/',
80 download_url
='http://www.gajim.org/downloads.php',
82 windows
=[{'script': 'src/gajim.py',
83 'icon_resources': [(1, 'data/pixmaps/gajim.ico')]},
84 {'script': 'src/history_manager.py',
85 'icon_resources': [(1, 'data/pixmaps/gajim.ico')]}],
87 data_files
=docutils_files
,