We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 67b35f2 commit 4c990b9Copy full SHA for 4c990b9
newsfragments/4553.feature.rst
@@ -0,0 +1 @@
1
+Added detection of ARM64 variant of MSVC -- by :user:`saschanaz`
setuptools/msvc.py
@@ -26,6 +26,7 @@
26
from more_itertools import unique_everseen
27
28
import distutils.errors
29
+from distutils.util import get_platform
30
31
# https://github.com/python/mypy/issues/8166
32
if not TYPE_CHECKING and platform.system() == 'Windows':
@@ -89,8 +90,9 @@ def _msvc14_find_vc2017():
89
90
if not root:
91
return None, None
92
93
+ variant = 'arm64' if get_platform() == 'win-arm64' else 'x86.x64'
94
suitable_components = (
- "Microsoft.VisualStudio.Component.VC.Tools.x86.x64",
95
+ f"Microsoft.VisualStudio.Component.VC.Tools.{variant}",
96
"Microsoft.VisualStudio.Workload.WDExpress",
97
)
98
0 commit comments