X-Git-Url: http://git.inspyration.org/?a=blobdiff_plain;f=setup.py;h=041a8df178b7d0d197239a44820b7de9c62f934a;hb=2fe3aff0818ee47d2ce3d6e7a875113e8dd7ecdf;hp=00bfa571d2c6b07f26f8154c7f6f31918ab4435b;hpb=307ca374d63e3fda0b9310c6315f64326ce05a8f;p=odoo%2Fodoo.git diff --git a/setup.py b/setup.py old mode 100755 new mode 100644 index 00bfa57..041a8df --- a/setup.py +++ b/setup.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python # -*- coding: utf-8 -*- ############################################################################## # @@ -40,7 +39,7 @@ def data(): # but this will work fine (especially since we don't use the ZIP file # approach). r["babel/localedata"] = glob.glob(os.path.join(os.path.dirname(babel.__file__), "localedata", '*')) - others = ['global.dat', 'numbers.py', 'support.py'] + others = ['global.dat', 'numbers.py', 'support.py', 'plural.py'] r["babel"] = map(lambda f: os.path.join(os.path.dirname(babel.__file__), f), others) others = ['frontend.py', 'mofile.py'] r["babel/messages"] = map(lambda f: os.path.join(os.path.dirname(babel.__file__), "messages", f), others) @@ -70,13 +69,52 @@ def py2exe_options(): if os.name == 'nt': import py2exe return { - "console" : [ { "script": "openerp-server", "icon_resources": [(1, join("install","openerp-icon.ico"))], }], + "console" : [ { "script": "openerp-server", "icon_resources": [(1, join("install","openerp-icon.ico"))], }, + { "script": "openerp-gevent" }, + { "script": "odoo.py" }, + ], 'options' : { "py2exe": { "skip_archive": 1, "optimize": 0, # keep the assert running, because the integrated tests rely on them. "dist_dir": 'dist', - "packages": [ "DAV", "HTMLParser", "PIL", "asynchat", "asyncore", "commands", "dateutil", "decimal", "docutils", "email", "encodings", "imaplib", "jinja2", "lxml", "lxml._elementpath", "lxml.builder", "lxml.etree", "lxml.objectify", "mako", "openerp", "poplib", "pychart", "pydot", "pyparsing", "pytz", "reportlab", "select", "simplejson", "smtplib", "uuid", "vatnumber", "vobject", "xml", "xml.dom", "yaml", ], + "packages": [ + "HTMLParser", + "PIL", + "asynchat", "asyncore", + "commands", + "dateutil", + "decimal", + "docutils", + "email", + "encodings", + "imaplib", + "jinja2", + "lxml", "lxml._elementpath", "lxml.builder", "lxml.etree", "lxml.objectify", + "mako", + "markupsafe", # dependence of jinja2 and mako + "mock", + "openerp", + "passlib", + "poplib", + "psutil", + "pychart", + "pydot", + "pyparsing", + "pytz", + "reportlab", + "requests", + "select", + "simplejson", + "smtplib", + "uuid", + "vatnumber", + "vobject", + "win32service", "win32serviceutil", + "xlwt", + "xml", "xml.dom", + "yaml", + ], "excludes" : ["Tkconstants","Tkinter","tcl"], } } @@ -109,33 +147,39 @@ setuptools.setup( author_email = author_email, classifiers = filter(None, classifiers.split("\n")), license = license, - scripts = ['openerp-server'], + scripts = ['openerp-server', 'openerp-gevent', 'odoo.py'], data_files = data(), packages = setuptools.find_packages(), dependency_links = ['http://download.gna.org/pychart/'], #include_package_data = True, install_requires = [ 'pychart', # not on pypi, use: pip install http://download.gna.org/pychart/PyChart-1.39.tar.gz - 'babel', + 'babel >= 1.0', 'docutils', 'feedparser', 'gdata', + 'gevent', + 'psycogreen', 'Jinja2', 'lxml', # windows binary http://www.lfd.uci.edu/~gohlke/pythonlibs/ 'mako', 'mock', - 'PIL', # windows binary http://www.lfd.uci.edu/~gohlke/pythonlibs/ + 'passlib', + 'pillow', # windows binary http://www.lfd.uci.edu/~gohlke/pythonlibs/ 'psutil', # windows binary code.google.com/p/psutil/downloads/list 'psycopg2 >= 2.2', 'pydot', 'pyparsing < 2', + 'pyserial', 'python-dateutil < 2', 'python-ldap', # optional 'python-openid', 'pytz', - 'pywebdav', + 'pyusb >= 1.0.0b1', 'pyyaml', + 'qrcode', 'reportlab', # windows binary pypi.python.org/pypi/reportlab + 'requests', 'simplejson', 'unittest2', 'vatnumber', @@ -146,7 +190,7 @@ setuptools.setup( extras_require = { 'SSL' : ['pyopenssl'], }, - tests_require = ['unittest2'], + tests_require = ['unittest2', 'mock'], **py2exe_options() )