From 6f9879c7ee5d6362afbc4e36e7b8f581f5e455cc Mon Sep 17 00:00:00 2001 From: Xavier ALT Date: Mon, 20 Oct 2008 19:30:41 +0200 Subject: [PATCH] Fixes for packaging - Add 'import int_to_text' so py2exe detect and copy it. - setup.py: Add dependencies to `asyncore', `asynchat' (addon `document') - setup.py: Add `import_xml.rng' in data files (crash on DB creation) bzr revid: x.alt@ajm.lu-20081020173041-bh5m3z4ljgcr8i4o --- bin/report/__init__.py | 1 + setup.py | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/bin/report/__init__.py b/bin/report/__init__.py index adbe1d7ee74..347e8670433 100644 --- a/bin/report/__init__.py +++ b/bin/report/__init__.py @@ -34,6 +34,7 @@ import print_fnc import custom import render import pychart +import int_to_text import report_sxw diff --git a/setup.py b/setup.py index 0000ae6c152..164d834a1e2 100644 --- a/setup.py +++ b/setup.py @@ -86,6 +86,8 @@ def find_addons(): def data_files(): '''Build list of data files to be installed''' + + print "Here" files = [] if os.name == 'nt': os.chdir('bin') @@ -138,6 +140,7 @@ def data_files(): glob.glob(opj(add_path, 'report', '*sxw')) + glob.glob(opj(add_path, 'report', '*xsl')))] files.extend(pathfiles) + files.append(('.', [('bin/import_xml.rng')])) return files check_modules() @@ -158,7 +161,7 @@ options = {"py2exe": { "packages": ["lxml", "lxml.builder", "lxml._elementpath", "lxml.etree", "lxml.objectify", "decimal", "xml", "xml.dom", "xml.xpath", "encodings","mx.DateTime","wizard","pychart","PIL", "pyparsing", - "pydot"], + "pydot","asyncore","asynchat"], "excludes" : ["Tkconstants","Tkinter","tcl"], }}