[FIX] setup.py: py2exe, sdist, and install seem good.

- added commands to the list of modules
- provide an explicit dependency link for pychart (which will be used by easy_install)

bzr revid: vmt@openerp.com-20110311110905-y8s85a24naq5zxdy
This commit is contained in:
Vo Minh Thu 2011-03-11 12:09:05 +01:00
parent 4db9a2533c
commit 4c45313a04
1 changed files with 9 additions and 7 deletions

View File

@ -85,11 +85,11 @@ if os.name == 'nt':
"packages": [ "packages": [
"lxml", "lxml.builder", "lxml._elementpath", "lxml.etree", "lxml", "lxml.builder", "lxml._elementpath", "lxml.etree",
"lxml.objectify", "decimal", "xml", "xml", "xml.dom", "xml.xpath", "lxml.objectify", "decimal", "xml", "xml", "xml.dom", "xml.xpath",
"encodings", "dateutil", "pychart", "PIL", "pyparsing", # Why is wizard listed here? "encodings", "dateutil", "pychart", "PIL", "pyparsing",
"pydot", "asyncore","asynchat", "reportlab", "vobject", "pydot", "asyncore","asynchat", "reportlab", "vobject",
"HTMLParser", "select", "mako", "poplib", "HTMLParser", "select", "mako", "poplib",
"imaplib", "smtplib", "email", "yaml", "DAV", "imaplib", "smtplib", "email", "yaml", "DAV",
"uuid", "openerp", "uuid", "commands", "openerp",
], ],
"excludes" : ["Tkconstants","Tkinter","tcl"], "excludes" : ["Tkconstants","Tkinter","tcl"],
} }
@ -107,8 +107,6 @@ if os.name == 'nt':
return files return files
py2exe_data_files = data_files() py2exe_data_files = data_files()
#sys.path.append(join(os.path.abspath(os.path.dirname(__file__)), "openerp")) # Is it just for wizard, or something else?
execfile(join('openerp', 'release.py')) execfile(join('openerp', 'release.py'))
setup(name = name, setup(name = name,
@ -131,15 +129,19 @@ setup(name = name,
package_data = { package_data = {
'': ['*.yml', '*.xml', '*.po', '*.pot', '*.csv'], '': ['*.yml', '*.xml', '*.po', '*.pot', '*.csv'],
}, },
dependency_links = ['http://download.gna.org/pychart/'],
install_requires = [ install_requires = [
# We require the same version as caldav for lxml. # We require the same version as caldav for lxml.
'lxml==2.1.5', 'lxml==2.1.5',
'mako', 'mako',
'python-dateutil', 'python-dateutil',
'psycopg2', 'psycopg2',
# We include pychart in our tree as it is difficult to get it via pypi. # TODO the pychart package we include in openerp corresponds to PyChart 1.37.
# An alternate site is http://home.gna.org/pychart/. # It seems there is a single difference, which is a spurious print in generate_docs.py.
# 'pychart', # 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.)
'pychart',
'pydot', 'pydot',
'pytz', 'pytz',
'reportlab', 'reportlab',