8000
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.
2 parents ed64256 + 8589e8d commit 2be1544Copy full SHA for 2be1544
numpy/distutils/misc_util.py
@@ -13,7 +13,6 @@
13
14
import distutils
15
from distutils.errors import DistutilsError
16
-from distutils.msvccompiler import get_build_architecture
17
try:
18
from threading import local as tlocal
19
except ImportError:
@@ -2336,3 +2335,9 @@ def msvc_version(compiler):
2336
2335
raise ValueError("Compiler instance is not msvc (%s)"\
2337
% compiler.compiler_type)
2338
return compiler._MSVCCompiler__version
+
2339
+def get_build_architecture():
2340
+ # Importing distutils.msvccompiler triggers a warning on non-Windows
2341
+ # systems, so delay the import to here.
2342
+ from distutils.msvccompiler import get_build_architecture
2343
+ return get_build_architecture()
0 commit comments