Re: Building M2Crypto on Windows using Python 2.4...
Arno Bakker <[email protected]>
| Newsgroups | gmane.comp.python.cryptography |
|---|---|
| Message-ID | <LISTSERV%[email protected]> |
To answer my own question: ;o) The glue between program and OpenSSL 0.9.8 that is required cannot be put in the M2Crypto library. It has to be in the .exe that runs the Python program. In the normal case this is python.exe, so to use M2Crypto with that you'll need to build python yourself with the #include "<OpenSSL-install-root>/include/openssl/applink.c" added to <py-src>/Modules/python.c (for python.exe) or <py-src>/PC/WinMai n.c (for pythonw.exe). To use py2exe, you don't need to rebuild python. In that case it is sufficient to add the include to <py2exe-src>/sources/run.c and/or <py2exe-src>/sources/run_w.c which compile to run.exe and run_w.exe that are the basis for any py2exe program.