We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40db90c commit c67d2e9Copy full SHA for c67d2e9
setup.py
@@ -898,8 +898,11 @@ def detect_modules(self):
898
blake2_deps.append('hashlib.h')
899
900
blake2_macros = []
901
- if not cross_compiling and os.uname().machine == "x86_64":
902
- # Every x86_64 machine has at least SSE2.
+ if (not cross_compiling and
+ os.uname().machine == "x86_64" and
903
+ sys.maxsize > 2**32):
904
+ # Every x86_64 machine has at least SSE2. Check for sys.maxsize
905
+ # in case that kernel is 64-bit but userspace is 32-bit.
906
blake2_macros.append(('BLAKE2_USE_SSE', '1'))
907
908
exts.append( Extension('_blake2',
0 commit comments