On 13/09/2007, Bill Janssen <[EMAIL PROTECTED]> wrote: > > Anyway, philosophy aside, I'll try to make some time in the next few > > days to get a working setup.py for the SSL package using mingw. > > Hopefully, Bill will then integrate this and we'll have mingw as a > > supported option. > > I'll be happy to do that!
OK, the following patch to setup.py works for mingw32. You need to set 2 variables - 1. The location where you installed gnuwin32 2. Whether you want a static or dynamic build I've checked both versions on Python 2.5.1 and they pass all tests. Static build is 670k, dynamic is 26k (but depends on the openssl DLLs libssl32.dll and libeay32.dll). Ideally, these should be settable via command line options or something. Also, it would be nice to detect the use of MSVC and do something equivalent (but presumably somewhat different), but I don't know how to detect the type of compiler the user has selected :-( Anyway, I hope it's useful. If nothing else, it offers a way for people to build the module with free software on Windows. I could build some Windows installers if you want, but I'd need to download and install some extra versions of Python, so you'd have to tell me which you want doing (and I can't offer to commit to doing this on a regular basis...) Paul.
mingw.patch
Description: Binary data
_______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com