I have a py2exe built program which is failing because it needs a copy of zlib.pyd. How do I build this? I can create zlib.dll (or .lib) from source, I can compile Python from source, I've worked with distutils, py2exe, and pyinstaller a pretty decent amount, so I have a good feel for the "landscape" - but I'm not sure how to go about directly generating a .pyd like this.
Update:
I found this:
building Python from source with zlib support
Which seems to be the answer for Linux, but this is not quite applicable in Windows using nmake
...