Skip to content

Commit 3218d66

Browse files
committed
Calculate host_id in one expression.
1 parent d69bf04 commit 3218d66

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

setuptools/msvc.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1048,10 +1048,7 @@ def VCTools(self):
10481048
tools += [os.path.join(si.VCInstallDir, path)]
10491049

10501050
elif self.vs_ver >= 15.0:
1051-
if self.pi.current_cpu in ('x86', 'arm64'):
1052-
host_id = self.pi.current_cpu.upper()
1053-
else:
1054-
host_id = 'X64'
1051+
host_id = self.pi.current_cpu.replace('amd64', 'x64').upper()
10551052
host_dir = os.path.join('bin', f'Host{host_id}%s')
10561053
tools += [
10571054
os.path.join(si.VCInstallDir, host_dir % self.pi.target_dir(x64=True))

0 commit comments

Comments
 (0)