Skip to content

Commit f4adb80

Browse files
committed
In return_env, avoid checking isfile.
Since `isfile` is already called on the paths processed by VCRuntimeRedist, this call is redundant, but it also fails if the result from VCRuntimeRedist was None. Fixes #1902
1 parent 2629280 commit f4adb80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setuptools/msvc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1469,7 +1469,7 @@ def return_env(self, exists=True):
14691469
exists,
14701470
),
14711471
)
1472-
if self.vs_ver >= 14 and isfile(self.VCRuntimeRedist):
1472+
if self.vs_ver >= 14 and self.VCRuntimeRedist:
14731473
env['py_vcruntime_redist'] = self.VCRuntimeRedist
14741474
return env
14751475

0 commit comments

Comments
 (0)