diff options
| author | Antony Lesuisse <al@openerp.com> | 2011-10-01 19:37:41 +0200 |
|---|---|---|
| committer | Antony Lesuisse <al@openerp.com> | 2011-10-01 19:37:41 +0200 |
| commit | fb9defcfff08f0367b9f67e9559a6de4d77a264e (patch) | |
| tree | bb42889e1441b706835e5e1852190ad3c7811000 /setup.py | |
| parent | f94a1d1d1452564a3ce0c5207ab5d86c1e740eed (diff) | |
| parent | 2852da3f349736878b7fb6806094061f755f7a5a (diff) | |
[MERGE] packaging part1 tgz
bzr revid: al@openerp.com-20111001173741-otvj0oqmsd77kag7
Diffstat (limited to 'setup.py')
| -rwxr-xr-x | setup.py | 79 |
1 files changed, 36 insertions, 43 deletions
@@ -23,33 +23,6 @@ import glob, os, re, setuptools, sys from os.path import join, isfile -execfile(join('openerp', 'release.py')) - -py2exe_keywords = {} -if os.name == 'nt': - import py2exe - py2exe_keywords['console'] = [ - { "script": "openerp-server", - "icon_resources": [(1, join("pixmaps","openerp-icon.ico"))], - }] - py2exe_keywords['options'] = { - "py2exe": { - "skip_archive": 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", "pychart", "PIL", "pyparsing", - "pydot", "asyncore","asynchat", "reportlab", "vobject", - "HTMLParser", "select", "mako", "poplib", - "imaplib", "smtplib", "email", "yaml", "DAV", - "uuid", "commands", "openerp", "simplejson", "vatnumber" - ], - "excludes" : ["Tkconstants","Tkinter","tcl"], - } - } - # List all data files def data(): files = [] @@ -71,8 +44,30 @@ def gen_manifest(): file_list="\n".join(data()) open('MANIFEST','w').write(file_list) +def py2exe_options(): + if os.name == 'nt': + import py2exe + return { + "console" : [ { "script": "openerp-server", "icon_resources": [(1, join("pixmaps","openerp-icon.ico"))], }], + 'options' : { + "py2exe": { + "skip_archive": 1, + "optimize": 2, + "dist_dir": 'dist', + "packages": [ "DAV", "HTMLParser", "PIL", "asynchat", "asyncore", "commands", "dateutil", "decimal", "email", "encodings", "imaplib", "lxml", "lxml._elementpath", "lxml.builder", "lxml.etree", "lxml.objectify", "mako", "openerp", "poplib", "pychart", "pydot", "pyparsing", "reportlab", "select", "simplejson", "smtplib", "uuid", "vatnumber" "vobject", "xml", "xml", "xml.dom", "xml.xpath", "yaml", ], + "excludes" : ["Tkconstants","Tkinter","tcl"], + } + } + } + else: + return {} + +execfile(join(os.path.dirname(__file__), 'openerp', 'release.py')) +if timestamp: + version = version + "-" + timestamp + setuptools.setup( - name = name, + name = 'openerp', version = version, description = description, long_description = long_desc, @@ -86,31 +81,29 @@ setuptools.setup( packages = setuptools.find_packages(), #include_package_data = True, install_requires = [ - # We require the same version as caldav for lxml. - 'lxml==2.1.5', - 'mako', - 'python-dateutil', - 'psycopg2', # TODO the pychart package we include in openerp corresponds to PyChart 1.37. # It seems there is a single difference, which is a spurious print in generate_docs.py. # It is probably safe to move to PyChart 1.39 (the latest one). # (Let setup.py choose the latest one, and we should check we can remove pychart from - # our tree.) - # http://download.gna.org/pychart/ - 'pychart', + # our tree.) http://download.gna.org/pychart/ + # TODO 'pychart', + 'feedparser', + 'lxml', + 'mako', + 'psycopg2', 'pydot', + 'python-dateutil', 'pytz', - 'reportlab', - 'caldav', - 'pyyaml', 'pywebdav', - 'feedparser', - 'simplejson >= 2.0', - 'vatnumber', # required by base_vat module + 'pyyaml', + 'reportlab', + 'simplejson', + 'vatnumber', # recommended by base_vat + 'werkzeug', ], extras_require = { 'SSL' : ['pyopenssl'], }, - **py2exe_keywords + **py2exe_options() ) |
