[Python-Dev] Windows package for new SSL package?

Paul Moore p.f.moore at gmail.com
Thu Sep 13 21:46:10 CEST 2007

On 13/09/2007, Bill Janssen <janssen at parc.com> 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...)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: mingw.patch
Type: application/octet-stream
Size: 2071 bytes
Desc: not available
Url : http://mail.python.org/pipermail/python-dev/attachments/20070913/4a0a3595/attachment-0001.obj 

More information about the Python-Dev mailing list