3714.1.27
by Xavier Morel
[FIX] packaging of babel locale data |
1 |
import os |
2 |
import glob |
|
3 |
||
4 |
import babel.localedata |
|
5 |
||
6 |
def babel_localedata(): |
|
7 |
return glob.glob( |
|
8 |
os.path.join(babel.localedata._dirname, '*.dat') |
|
9 |
)
|
|
10 |
||
3714.1.10
by Xavier Morel
[IMP] bundle media files in py2exe archives, or try to anyway, and bundle addons directory as well |
11 |
__all__ = ['opts'] |
12 |
||
13 |
opts = { |
|
14 |
'console': ['scripts/openerp-web'], |
|
15 |
'options': {'py2exe': { |
|
3714.1.30
by Xavier Morel
[IMP] py2exe's 'compressed' directive is actually a boolean, not an integer |
16 |
'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 |
17 |
'optimize': 2, |
18 |
'bundle_files': 2, |
|
19 |
'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 |
20 |
'mako', 'cherrypy', 'babel', 'formencode', 'simplejson', 'csv', |
3714.1.24
by Xavier Morel
[FIX] mako.cache needs to be specifically added to the includes |
21 |
'dateutil.relativedelta', 'pytz', 'xml.dom.minidom', 'cgitb', |
4203
by Stephane Wirtel
[FIX] Include the email library |
22 |
'mako.cache', 'zipfile', 'email', 'email.utils', 'email.iterators', |
4430
by Antony Lesuisse
[FIX] py2exe bundle functools |
23 |
'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 |
24 |
],
|
25 |
'excludes': [ |
|
26 |
'Carbon', 'Carbon.Files', 'Crypto', 'DNS', 'OpenSSL', 'Tkinter', |
|
4203
by Stephane Wirtel
[FIX] Include the email library |
27 |
'_scproxy', 'elementtree.ElementTree', 'email.Header', |
28 |
'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 |
29 |
'markupsafe._speedups', 'memcache', 'mx', 'pycountry', 'routes', |
30 |
'simplejson._speedups', 'turbogears.i18n', 'win32api', 'win32con', |
|
31 |
'win32event', 'win32pipe', 'win32service', 'win32serviceutil' |
|
32 |
],
|
|
33 |
'dll_excludes': [ |
|
3714.1.29
by Xavier Morel
[IMP] exclude powrprof.dll, apparently poses problems when building the py2exe package on Windows 7 and shipping it to Windows XP |
34 |
'w9xpopen.exe', "POWRPROF.dll" |
3714.1.10
by Xavier Morel
[IMP] bundle media files in py2exe archives, or try to anyway, and bundle addons directory as well |
35 |
]
|
3714.1.27
by Xavier Morel
[FIX] packaging of babel locale data |
36 |
}},
|
37 |
'data_files' : [ |
|
38 |
('babel/localedata', babel_localedata()) |
|
39 |
]
|
|
3714.1.10
by Xavier Morel
[IMP] bundle media files in py2exe archives, or try to anyway, and bundle addons directory as well |
40 |
}
|