Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f2519f7

Browse files
committed
Update ARCH check
Use sys for x86/x64 check
1 parent 9e85489 commit f2519f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
import fnmatch
1111
import glob
1212
import os
13-
import platform
1413
import subprocess
1514
import sys
1615
import sysconfig
@@ -24,8 +23,9 @@
2423
CONFIG = "Release" # Release or Debug
2524
VERBOSITY = "minimal" # quiet, minimal, normal, detailed, diagnostic
2625

26+
is_64bits = sys.maxsize > 2**32
2727
DEVTOOLS = "MsDev" if sys.platform == "win32" else "Mono"
28-
ARCH = "x64" if platform.architecture()[0] == "64bit" else "x86"
28+
ARCH = "x64" if is_64bits else "x86"
2929
PY_MAJOR = sys.version_info[0]
3030
PY_MINOR = sys.version_info[1]
3131

0 commit comments

Comments
 (0)