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 f07d2d7 commit 18c6e7aCopy full SHA for 18c6e7a
dss_setup_common.py
@@ -1,4 +1,4 @@
1
-import sys, os
+import sys, os, platform
2
3
# Not complete but should suffice for the moment
4
if 'linux' in sys.platform.lower():
@@ -14,7 +14,7 @@
14
else:
15
arch = 'x64' if (sys.maxsize > (1 << 32)) else 'x86'
16
17
-if '-arm64' in os.environ.get('_PYTHON_HOST_PLATFORM', ''):
+if ('-arm64' in os.environ.get('_PYTHON_HOST_PLATFORM', '')) or platform.machine() == 'arm64':
18
arch = 'arm64'
19
20
platform_short = ''.join(filter(lambda ch: ch.isalpha(), sys.platform))
0 commit comments