We've been using M2crypto with Python 2.6 for Windows (32-bit) for some time with great success. We used one of the user contributed setups to install M2crypto in our development environments. We would like to move to Python 2.7, but noticed there are no p开发者_开发问答re-built Python 2.7 setups for m2crypto.
Questions:
Is M2crypto 0.20.2 compatible with Python 2.7 or should we remain at Python 2.6 if we want to continue to use this library?
Does anyone have a user built setup for installing M2Crypto 0.20.2 in a Python 2.7 environment? (There are no 2.7 contributions on the M2crypto site and google comes up empty as well)
Can we copy our Python 2.6 M2Crypto files (under lib\site-packages\M2Crypto) to the same place in our Python 2.7 setup and avoid a formal installation process?
What version of OpenSLL should we use with M2crypto 0.20.2? I checked the OpenSSL website and there appear 2 versions of OpenSSL to choose from: 0.9.8 and 1.0.0a.
Thank you, Malcolm
- Yes, it's compatible with Python 2.7, so you can freely upgrade if you have not already.
- Yes, here you have
bdist_wininst
,bdist_egg
andbdist
for M2Crypto 20.2 built for Python 2.7 with MSVS2008 by me, hope it will fit your needs. - No, you will get import error, as .pyd file (which is actually DLL) has
python26.dll
in it's import table, so this will not work. Of course, you can hack it and replacepython26
withpython27
, but that's too dirt and gives you no guarantee it will work all the time. - Version I uploaded for you works fine with OpenSSL 0.9.8o, haven't tested it with 1.0.0.
精彩评论