|
From: <bc...@wo...> - 2001-08-06 17:56:26
|
[Wiwih "Will" Gunadi]
>hi!
>have any of you successfully compiled a program that imports xml.sax ?
>i couldn't get the xml module to be created even when I use --deep switch on
>jythonc
In 2.1beta1 I expect parts of the PyXML package to be shipped within the
jython distribution. Based on this new setup I managed to compile a very
simple xml.sax application with jythonc.
In my main program I needed to a dummy function like this:
def dummy_jythonc():
import xml.sax.drivers2.drv_xmlproc
import encodings.utf_16_be
import dumbdbm
It causes the dynamicly loaded modules to be visible to jythonc during
compilation.
The test application is available as test313.py and test313c.py here:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/jython/bugtests/
This probably doesn't fix your particular problem, but I hope it will
become easier to use xml.sax as the work progress.
regards,
finn
|