Skip to content

Commit

Permalink
In return_env, avoid checking isfile.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
jaraco committed Sep 3, 2024
1 parent 2629280 commit f4adb80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setuptools/msvc.py
Original file line number Diff line number Diff line change
Expand Up @@ -1469,7 +1469,7 @@ def return_env(self, exists=True):
exists,
),
)
if self.vs_ver >= 14 and isfile(self.VCRuntimeRedist):
if self.vs_ver >= 14 and self.VCRuntimeRedist:
env['py_vcruntime_redist'] = self.VCRuntimeRedist
return env

Expand Down

0 comments on commit f4adb80

Please sign in to comment.