--- M2Crypto-0.24.0/setup.py.orig 2017-04-24 01:52:50.368912266 +0200 +++ M2Crypto-0.24.0/setup.py 2017-04-24 01:53:45.223167325 +0200 @@ -91,7 +91,7 @@ # For RedHat-based distros, the '-D__{arch}__' option for # Swig needs to be normalized, particularly on i386. - mach = platform.machine().lower() + mach = os.getenv('__SWIG_CPU_ARCH', platform.machine().lower()) if mach in ('i386', 'i486', 'i586', 'i686'): arch = '__i386__' elif mach in ('ppc64', 'powerpc64'):