#!/usr/bin/env python
# -*- coding: utf-8 -*-
##############################################################################
-#
+#
# OpenERP, Open Source Management Solution
-# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>).
+# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
-# along with this program. If not, see <http://www.gnu.org/licenses/>.
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
required_modules = [
('lxml', 'lxml module: pythonic libxml2 and libxslt bindings'),
- ('mx', "egenix's mx library for its extended DateTime module"),
+ ('mako', 'Mako template engine'),
+ ('dateutil', "Extensions to the standard datetime module"),
('psycopg2', 'PostgreSQL module'),
('pychart', 'pychart module'),
('pydot', 'pydot module'),
('pytz', 'Timezone handling library for Python'),
('reportlab', 'reportlab module'),
+ ('yaml', 'YAML parser and emitter for Python'),
]
def check_modules():
def find_addons():
for root, _, names in os.walk(join('bin', 'addons')):
- if '__terp__.py' in names:
+ if '__openerp__.py' in names or '__terp__.py' in names:
yield basename(root), root
#look for extra modules
try:
mname = mname.strip()
if not mname:
continue
- if os.path.exists(join(empath, mname, '__terp__.py')):
+
+ terp = join(empath, mname, '__openerp__.py')
+ if not os.path.exists(terp):
+ terp = join(empath, mname, '__terp__.py')
+
+ if os.path.exists(terp):
yield mname, join(empath, mname)
else:
print "Module %s specified, but no valid path." % mname
f = open('openerp-server', 'w')
f.write(start_script)
f.close()
- super(openerp_server_install, self).run()
+ install.run(self)
options = {
"py2exe": {
"optimize": 2,
"dist_dir": 'dist',
"packages": ["lxml", "lxml.builder", "lxml._elementpath", "lxml.etree",
- "lxml.objectify", "decimal", "xml", "xml.dom", "xml.xpath",
- "encodings","mx.DateTime","wizard","pychart","PIL",
- "pyparsing", "pydot","asyncore","asynchat", "reportlab",
- "vobject", "HTMLParser", "select"],
+ "lxml.objectify", "decimal", "xml", "encodings",
+ "dateutil", "wizard", "pychart", "PIL", "pyparsing",
+ "pydot", "asyncore","asynchat", "reportlab", "vobject",
+ "HTMLParser", "select", "yaml"],
"excludes" : ["Tkconstants","Tkinter","tcl"],
}
}
packages = ['openerp-server',
'openerp-server.addons',
'openerp-server.ir',
- 'openerp-server.mako',
'openerp-server.osv',
'openerp-server.pychart',
+ 'openerp-server.pychart.afm',
'openerp-server.report',
'openerp-server.report.printscreen',
'openerp-server.report.pyPdf',
'openerp-server.wizard',
'openerp-server.workflow'] + \
[('openerp-server.addons.' + name)
- for name, _ in find_addons()]
+ for name, _ in find_addons()],
package_dir = find_package_dirs(),
console = [{"script": join("bin", "openerp-server.py"),
"icon_resources": [(1,join("pixmaps","openerp-icon.ico"))]