required_modules = [
('lxml', 'lxml module: pythonic libxml2 and libxslt bindings'),
('mako', 'Mako template engine'),
- ('mx', "egenix's mx library for its extended DateTime module"),
+ ('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
"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"],
}
}