From 5ef90ee27b9916986b39d0af4eee0ea326a95034 Mon Sep 17 00:00:00 2001 From: Scott Talbert Date: Thu, 2 Jan 2025 21:04:17 -0500 Subject: [PATCH] setuptools.msvc: set host_dir correctly on ARM64 hosts --- setuptools/msvc.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/setuptools/msvc.py b/setuptools/msvc.py index 9c9a63568e..36dfdd03fc 100644 --- a/setuptools/msvc.py +++ b/setuptools/msvc.py @@ -1039,7 +1039,13 @@ def VCTools(self): elif self.vs_ver >= 15.0: host_dir = ( - r'bin\HostX86%s' if self.pi.current_is_x86() else r'bin\HostX64%s' + r'bin\HostX86%s' + if self.pi.current_is_x86() + else ( + r'bin\HostARM64%s' + if self.pi.current_cpu == 'arm64' + else r'bin\HostX64%s' + ) ) tools += [ os.path.join(si.VCInstallDir, host_dir % self.pi.target_dir(x64=True))