Use subprocess rather than commands.

Also allow programs to be overriden with environment variables
($PKG_CONFIG and $PYREXC).
Build with Cython rather than Pyrex.

Cython is effectively an extended version of Pyrex; it seems to be more
widely used by other modules these days.
Update the translated libstatgrab API to match 0.90.

The bindings code still needs updating to make it actually work.
Have Cython generate the "statgrab" module directly.

This avoids wrapping everything twice (once in _statgrab.pyx and then
again in statgrab.py).

It should also make Python 3 support more straightforward, since
Cython's C output works for both 2 and 3.
Export the constants without the py_SG_ prefix.

"statgrab.ERROR_PARSE" is a reasonable kind of name.
Update the wrappers.

This cleans up the API to remove the SG_ and sg_ prefixes everything
used to have -- e.g. you now do statgrab.get_page_stats().
Move the libstatgrab low-level bindings to a separate file.

This means that the sg_ namespace is available in the statgrab module
for backwards compatibility.
Add wrappers to provide the old pystatgrab API.
Add sg. qualifications on the old error-handling functions.

I'd missed this the first time round.
Remove debugging code.

(It will raise an exception if the result is NULL.)
Handle 0-length vector results correctly.

If a vector-returning function returns NULL, that might be an error or
it might be because the list it's returning is actually empty.
Call sg_get_error to distinguish the two cases.

This is a bit awkward; see libstatgrab issue #17 for more discussion.
Update the manifest.
Add a test suite for pystatgrab.

This does a reasonably comprehensive job of checking that the bindings
work.
Remove user list check that doesn't make sense.

It's OK for this to be empty, or have one item in, or have any number of
items in -- so there's nothing to test here.
Update the FSF's address in the licensing notices.

The FSF moved several years ago; this updates all the mentions of their
address in the GPL copy (for which I've just taken the latest plain-text
copy of the GPLv2 from the FSF web site) and the licensing headers in
our files.
Change pystatgrab's license to LGPLv2+.

We changed the license of libstatgrab to LGPLv2+ (rather than GPLv2+) in
April 2004, but we never updated pystatgrab to match. This fixes it.

The authors of pystatgrab are Tim Bishop and Adam Sampson; both are
happy with this change.
Update license field in distutils.
Remove old @i-scream.org email addresses.

The wording added to README comes from libstatgrab's README.
There isn't a ChangeLog any more.
If Cython can't be imported, build from statgrab.c.

As Tim pointed out, the previous version of pystatgrab didn't require
Pyrex since it shipped _statgrab.c anyway.