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 6a90a12 commit 9cead06Copy full SHA for 9cead06
setup.py
@@ -897,8 +897,11 @@ def detect_modules(self):
897
blake2_deps.append('hashlib.h')
898
899
blake2_macros = []
900
- if not cross_compiling and os.uname().machine == "x86_64":
901
- # Every x86_64 machine has at least SSE2.
+ if (not cross_compiling and
+ os.uname().machine == "x86_64" and
902
+ sys.maxsize > 2**32):
903
+ # Every x86_64 machine has at least SSE2. Check for sys.maxsize
904
+ # in case that kernel is 64-bit but userspace is 32-bit.
905
blake2_macros.append(('BLAKE2_USE_SSE', '1'))
906
907
exts.append( Extension('_blake2',
0 commit comments