~ubuntu-branches/ubuntu/karmic/gajim/karmic

« back to all changes in this revision

Viewing changes to setup_win32.py

  • Committer: Bazaar Package Importer
  • Author(s): Nafallo Bjälevik
  • Date: 2008-12-17 12:08:19 UTC
  • mfrom: (1.1.11 upstream)
  • Revision ID: james.westby@ubuntu.com-20081217120819-20o3ibfc8fc1r1vk
Tags: 0.12-0ubuntu1
* New upstream release:
  + Fix text rendering in notifications
  + Better sessions support
  + Better auto-away support
  + Fix banshee support
  + Quodlibet support
  + Fix GSSAPI authentification
  + Those translations have been temporarily removed because they are outdated:
    Breton (br), Greek (el), Dutch (nl), Portugese (pt). 
* debian/control:
  - Added python-kerberos (>= 1.1) to Recommends for the GSSAPI auth.

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
import sys
26
26
import os
27
27
 
 
28
docutils_files = []
 
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))
 
34
 
 
35
try:
 
36
    import docutils.readers
 
37
    import docutils.writers.html4css1
 
38
    import docutils.languages
 
39
except ImportError:
 
40
    pass
 
41
else:
 
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'))))
 
46
 
28
47
sys.path.append('src')
29
48
# Use local gtk folder instead of the one in PATH that is not latest gtk
30
49
if 'gtk' in os.listdir('.'):
31
50
    sys.path.append('gtk/bin')
32
 
includes = ['encodings', 'encodings.utf-8',]
33
51
 
34
52
opts = {
35
53
    'py2exe': {
36
 
        'includes': 'pango,atk,gobject,cairo,pangocairo,gtk.keysyms,encodings,encodings.*,docutils.readers.*,docutils.writers.html4css1',
 
54
        # ConfigParser,UserString,roman are needed for docutils
 
55
        'includes': 'pango,atk,gobject,cairo,pangocairo,gtk.keysyms,encodings,encodings.*,ConfigParser,UserString',
37
56
        'dll_excludes': [
38
57
            'iconv.dll','intl.dll','libatk-1.0-0.dll',
39
58
            'libgdk_pixbuf-2.0-0.dll','libgdk-win32-2.0-0.dll',
43
62
            'libpangowin32-1.0-0.dll','libcairo-2.dll',
44
63
            'libpangocairo-1.0-0.dll','libpangoft2-1.0-0.dll',
45
64
        ],
 
65
        'excludes': [
 
66
            'docutils'
 
67
        ],
46
68
    }
47
69
}
48
70
 
49
 
try:
50
 
        import docutils.readers
51
 
except ImportError:
52
 
        opts['py2exe']['includes'] = \
53
 
                opts['py2exe']['includes'].replace(',docutils.readers.*', '')
54
 
 
55
 
try:
56
 
        import docutils.writers.html4css1
57
 
except ImportError:
58
 
        opts['py2exe']['includes'] = \
59
 
                opts['py2exe']['includes'].replace(',docutils.writers.html4css1', '')
60
71
 
61
72
setup(
62
73
    name = 'Gajim',
63
 
    version = '0.12-beta1',
 
74
    version = '0.12',
64
75
    description = 'A full featured Jabber client',
65
76
    author = 'Gajim Development Team',
66
77
    url = 'http://www.gajim.org/',
73
84
                'icon_resources': [(1, 'data/pixmaps/gajim.ico')]}],
74
85
    options=opts,
75
86
 
76
 
    data_files=[('.', glob.glob('src/gtkgui.glade')),
77
 
                ('.', glob.glob('src/history_manager.glade')),
78
 
    ],
 
87
    data_files=docutils_files,
 
88
 
79
89
)
80
90
 
81
91
# vim: se ts=3: