FWIW, on Fedora, 'pip install M2Crypto' doesn't work at all (not even for 0.20.1 or 0.20.2), so we just use the system M2Crypto package rather than installing it into venv. See the code in install_venv.py
The issue on Fedora is:
swig -python -I/usr/include/python2.7 -I/usr/include -includeall -o SWIG/_m2crypto_wrap.c SWIG/_m2crypto.i
/usr/include/openssl/opensslconf.h:31: Error: CPP #error ""This openssl-devel package does not work your architecture?"". Use the -cpperraswarn option to continue swig processing.
error: command 'swig' failed with exit status 1
FWIW, on Fedora, 'pip install M2Crypto' doesn't work at all (not even for 0.20.1 or 0.20.2), so we just use the system M2Crypto package rather than installing it into venv. See the code in install_venv.py
The issue on Fedora is:
swig -python -I/usr/ include/ python2. 7 -I/usr/include -includeall -o SWIG/_m2crypto_ wrap.c SWIG/_m2crypto.i include/ openssl/ opensslconf. h:31: Error: CPP #error ""This openssl-devel package does not work your architecture?"". Use the -cpperraswarn option to continue swig processing.
/usr/
error: command 'swig' failed with exit status 1
See also:
http:// stackoverflow. com/questions/ 7772965/ m2crypto- doesnt- install- in-venv- or-swig- doesnt- define- x86-64- which-breaks /bugzilla. redhat. com/456764
https:/
A sorry tale of fail