diff options
| author | Christophe Simonis <chs@openerp.com> | 2012-11-30 14:58:29 +0100 |
|---|---|---|
| committer | Christophe Simonis <chs@openerp.com> | 2012-11-30 14:58:29 +0100 |
| commit | 4d4c11bbbee24deb6eba67ae70a9ffd8903dc15c (patch) | |
| tree | 392cf9544f6a5c10dd80cbfddf691f64fc23bdac | |
| parent | 9e3a6c6cc3dd2233b82bebc79acf3f63cfd2a433 (diff) | |
[FIX] setup.py: add pytz data files on windows
bzr revid: chs@openerp.com-20121130135829-8i2pd5kqlyhhfx2r
| -rwxr-xr-x | setup.py | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -41,10 +41,13 @@ def data(): if os.name == 'nt': r.append(("Microsoft.VC90.CRT", glob.glob('C:\Microsoft.VC90.CRT\*.*'))) - import babel - r.append(("localedata", - glob.glob(os.path.join(os.path.dirname(babel.__file__), "localedata" , '*')))) + import babel + r.append(("localedata", + glob.glob(os.path.join(os.path.dirname(babel.__file__), "localedata", '*')))) + import pytz + r.append((os.path.join("pytz", "zoneinfo"), + glob.glob(os.path.join(os.path.dirname(pytz.__file__), "zoneinfo", '*')))) return r def gen_manifest(): @@ -64,7 +67,7 @@ def py2exe_options(): "skip_archive": 1, "optimize": 2, "dist_dir": 'dist', - "packages": [ "DAV", "HTMLParser", "PIL", "asynchat", "asyncore", "commands", "dateutil", "decimal", "docutils", "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.dom", "yaml", ], + "packages": [ "DAV", "HTMLParser", "PIL", "asynchat", "asyncore", "commands", "dateutil", "decimal", "docutils", "email", "encodings", "imaplib", "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", ], "excludes" : ["Tkconstants","Tkinter","tcl"], } } |
