2 Installing the XML Toolkit

Windows users should get the precompiled version at http://sourceforge.net/projects/pyxml; Mac users will use the corresponding precompiled version at XXX. Linux users may wish to use either the Debian package from XXX, or the RPM from http://sourceforge.net/projects/pyxml. To compile from source on a Unix platform, simply perform the following steps.

  1. If you have are using Python 1.5, you need to install the distutils first, which are available from http://www.python.org/sigs/distutils-sig. Python 1.6 and later already includes the distutils, so you can skip this step.

  2. Get a copy of the source distribution from http://sourceforge.net/projects/pyxml. Unpack it with the following command.

    gzip -dc xml-package.tgz | tar -xvf -
    

  3. Run:
    python setup.py install
    

    To properly execute this operation, a C compiler is required - the same that was used to build Python itself. On a Unix system, this operation may require superuser permissions. setup.py supports a number of different commands and options, invoke setup.py without any arguments to obtain help.

If you have difficulty installing this software, send a problem report to <xml-sig@python.org> describing the problem, or submit a bug report at http://sourceforget.net/projects/pyxml.

There are various demonstration programs in the demo/ directory of the source distribution. You may wish to look at them next to get an impression of what's possible with the XML tools, and as a source of example code.


Subsections