For people looking for a way to compile extensions for Python 2.4,
there’s this page with some instructions on the bits needed.
Contrary to what the page says though, you don’t need to hack your
distutils install to get it to work. You just need to provide the
registry keys that distutils is looking for.