[XML-SIG] Availability of libxml2 and libxslt Python bindings

Daniel Veillard veillard@redhat.com
Thu, 21 Feb 2002 08:47:05 -0500

On Thu, Feb 21, 2002 at 02:26:49PM +0100, M.-A. Lemburg wrote:
> I've downloaded both the libxml2 and libxslt libs, but it's
> not clear to me where to find the Python extensions (there's
> some mention of them in libxslt, but nothing in libxml2).

  In the python subdir in the source tree

> Ideal would be to have them as distutils setup.py style
> packages, so that it is possible to install them without
> having to compile the libs themselves.

  Hum, a lot of them are actually generated, and then need
some preprocessing, the stubs for example are not part of the
archives (but build with a python script). This would basically
amount to rewrite the python/Makefile.am with a different facility.
The key point is that I'm not used to setup.py, it must have
some knowledge of the C compiler flags for shared libs, the path
to python binaries and associated paths, etc... Can you share a 
pointer describing this ?

> Also, I'm a little unsure how the David Kuhlman Python
> extensions fit into the picture: are they no longer needed
> or do they provide extra functionality ?

   They are not needed, I learned from David's binding but
the bindings are very different. Mine are automatically generated
from a strict definition of the libraries APIs (with a bit of glue
of course).


Daniel Veillard      | Red Hat Network https://rhn.redhat.com/
veillard@redhat.com  | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/