summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristophe Simonis <chs@openerp.com>2012-11-30 14:58:29 +0100
committerChristophe Simonis <chs@openerp.com>2012-11-30 14:58:29 +0100
commit4d4c11bbbee24deb6eba67ae70a9ffd8903dc15c (patch)
tree392cf9544f6a5c10dd80cbfddf691f64fc23bdac
parent9e3a6c6cc3dd2233b82bebc79acf3f63cfd2a433 (diff)
[FIX] setup.py: add pytz data files on windows
bzr revid: chs@openerp.com-20121130135829-8i2pd5kqlyhhfx2r
-rwxr-xr-xsetup.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/setup.py b/setup.py
index 4f1435c0603..79d9b2d5a07 100755
--- a/setup.py
+++ b/setup.py
@@ -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"],
}
}