if os.name == 'nt':
import py2exe
py2exe_keywords['console'] = [
- { "script": "openerp-server.py",
+ { "script": "openerp-server",
"icon_resources": [(1, join("pixmaps","openerp-icon.ico"))],
}]
py2exe_keywords['options'] = {
files.append((join('openerp',dp), map(lambda x: join('openerp', dp, x), names)))
os.chdir('..')
files.append(('openerp', [join('openerp', 'import_xml.rng'),]))
+
+ # copy pytz/timzeone
+ # TODO check if we have to also copy dateutil's timezone data.
+ import pytz
+ # Make sure the layout of pytz hasn't changed
+ assert (pytz.__file__.endswith('__init__.pyc') or
+ pytz.__file__.endswith('__init__.py')), pytz.__file__
+ pytz_dir = os.path.dirname(pytz.__file__)
+
+ saved_dir = os.getcwd()
+ os.chdir(pytz_dir)
+ for dp, dn, names in os.walk('zoneinfo'):
+ files.append((join('pytz',dp), map(lambda x: join(pytz_dir, dp, x), names)))
+ os.chdir(saved_dir)
+
return files
py2exe_data_files = data_files()
(join('man', 'man5'), ['man/openerp_serverrc.5']),
('doc', filter(isfile, glob.glob('doc/*'))),
] + py2exe_data_files,
- scripts = ['openerp-server.py'],
+ scripts = ['openerp-server'],
packages = find_packages(),
include_package_data = True,
package_data = {
'pyyaml',
'pywebdav',
'feedparser',
+ 'simplejson >= 2.0',
],
extras_require = {
'SSL' : ['pyopenssl'],