Prior to Python 2.5, trying to create Python extension modules for Windows with only free tools was an extremely frustrating experience. Python has traditionally been (and still is) compiled with proprietary Microsoft tools, making it difficult to interoperate with
gcc. Your options were:
- Trying to get MinGW to work by using this very painful method.
- For a while, Microsoft offered a free set of basic compiler tools that could be used to create extensions (it was still fairly difficult, but possible). Unfortunately, Microsoft withdrew the free tools fairly soon after Python 2.4 came out.
- Recompile Python with MinGW. In theory this could work (I never made it ...) but then you are locked into your own MinGW-only world, and cannot interoperate with the standard Python distribution.
With Python 2.5, free (as in open source!) tools are finally supported without having to perform any weird voodoo on the standard distribution.