- py2exe_keywords['console'] = [
- { "script": join("bin", "openerp-server.py"),
- "icon_resources": [(1, join("pixmaps","openerp-icon.ico"))],
- }]
- py2exe_keywords['options'] = {
- "py2exe": {
- "compressed": 1,
- "optimize": 2,
- "dist_dir": 'dist',
- "packages": [
- "lxml", "lxml.builder", "lxml._elementpath", "lxml.etree",
- "lxml.objectify", "decimal", "xml", "xml", "xml.dom", "xml.xpath",
- "encodings", "dateutil", "wizard", "pychart", "PIL", "pyparsing",
- "pydot", "asyncore","asynchat", "reportlab", "vobject",
- "HTMLParser", "select", "mako", "poplib",
- "imaplib", "smtplib", "email", "yaml", "DAV",
- "uuid",
- ],
- "excludes" : ["Tkconstants","Tkinter","tcl"],
- }
- }
+ from py2exe_utils import opts
+ version_dash_incompatible = True
+except ImportError:
+ opts = {}
+if version_dash_incompatible:
+ version = version.split('-')[0]