~jfb-tempo-consulting/unifield-web/us-4198

3714.1.27 by Xavier Morel
[FIX] packaging of babel locale data
1
import os
2
import glob
3
import babel.localedata
4
3714.1.10 by Xavier Morel
[IMP] bundle media files in py2exe archives, or try to anyway, and bundle addons directory as well
5
__all__ = ['opts']
6
7
opts = {
8
    'console': ['scripts/openerp-web'],
9
    'options': {'py2exe': {
3714.1.30 by Xavier Morel
[IMP] py2exe's 'compressed' directive is actually a boolean, not an integer
10
        'compressed': True,
3714.1.10 by Xavier Morel
[IMP] bundle media files in py2exe archives, or try to anyway, and bundle addons directory as well
11
        'optimize': 2,
12
        'bundle_files': 2,
13
        'includes': [
3714.1.15 by Xavier Morel
[FIX] includes for py2exe bundling, add format to openobject.i18n imports so it gets detected by py2exe's bundler
14
            'mako', 'cherrypy', 'babel', 'formencode', 'simplejson', 'csv',
3714.1.24 by Xavier Morel
[FIX] mako.cache needs to be specifically added to the includes
15
            'dateutil.relativedelta', 'pytz', 'xml.dom.minidom', 'cgitb',
4203 by Stephane Wirtel
[FIX] Include the email library
16
            'mako.cache', 'zipfile', 'email', 'email.utils', 'email.iterators',
4430 by Antony Lesuisse
[FIX] py2exe bundle functools
17
            'email.message','functools'
3714.1.10 by Xavier Morel
[IMP] bundle media files in py2exe archives, or try to anyway, and bundle addons directory as well
18
        ],
19
        'excludes': [
20
            'Carbon', 'Carbon.Files', 'Crypto', 'DNS', 'OpenSSL', 'Tkinter',
4203 by Stephane Wirtel
[FIX] Include the email library
21
            '_scproxy', 'elementtree.ElementTree', 'email.Header',
22
            'flup.server.fcgi', 'flup.server.scgi',
3714.1.10 by Xavier Morel
[IMP] bundle media files in py2exe archives, or try to anyway, and bundle addons directory as well
23
            'markupsafe._speedups', 'memcache', 'mx', 'pycountry', 'routes',
24
            'simplejson._speedups', 'turbogears.i18n', 'win32api', 'win32con',
25
            'win32event', 'win32pipe', 'win32service', 'win32serviceutil'
26
        ],
27
        'dll_excludes': [
4842.4.7 by Jeff Allen
Update list of DLLs to exclude.
28
            'w9xpopen.exe', 'POWRPROF.dll', 'CRYPT32.dll', 'MPR.dll',
3714.1.10 by Xavier Morel
[IMP] bundle media files in py2exe archives, or try to anyway, and bundle addons directory as well
29
        ]
3714.1.27 by Xavier Morel
[FIX] packaging of babel locale data
30
    }},
31
    'data_files' : [
4842.4.3 by Jeff R. Allen
Solve problems with babel auxillary files.
32
        ('babel/localedata', glob.glob(os.path.join(babel.localedata._dirname, '*.dat'))),
33
        ('babel', glob.glob(os.path.join(os.path.dirname(babel.__file__), 'global.dat'))),
3714.1.27 by Xavier Morel
[FIX] packaging of babel locale data
34
    ]
3714.1.10 by Xavier Morel
[IMP] bundle media files in py2exe archives, or try to anyway, and bundle addons directory as well
35
}