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
This commit is contained in:
Xavier ALT 2008-10-20 19:30:41 +02:00
parent f2644d5bc2
commit 6f9879c7ee
2 changed files with 5 additions and 1 deletions

View File

@ -34,6 +34,7 @@ import print_fnc
import custom
import render
import pychart
import int_to_text
import report_sxw

View File

@ -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"],
}}