[Python-Dev] Windows package for new SSL package? (original) (raw)

Bill Janssen janssen at parc.com
Thu Sep 13 05:27:58 CEST 2007


> Can't we look in the registry for this? We have a working Python; > perhaps we can just use a Windows-specific registry lookup to find > OpenSSL? (I'm just blue-skying here; I have no clue how things work > on Windows.)

Not really. Python itself, when building ssl, doesn't look for a binary install of openssl, but instead a source directory and a working perl interpreter so an openssl can be built suitable for linking with Python. This source directory is just downloaded and unzipped - no registration takes place, and any binaries that may be built are ignored (we just want the .h and .lib files)

In that case, I think your idea of just hard-coding a path is probably the right thing to do. I'll add a note that this is how you need to do it if you are going to try "python setup.py build". Presumably the binary then built with "python setup.py bdist" will install on a Windows machine regardless of where OpenSSL is installed?

Bill



More information about the Python-Dev mailing list