Skip to content

Commit 2ed0ac6

Browse files
miss-islingtonzooba
andcommitted
bpo-38088: Fixes distutils not finding vcruntime140.dll with only v142 toolset installed (GH-15849)
(cherry picked from commit cd82211) Co-authored-by: Steve Dower <[email protected]>
1 parent 21dacea commit 2ed0ac6

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Lib/distutils/_msvccompiler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def _find_vcvarsall(plat_spec):
107107

108108
if best_dir:
109109
vcredist = os.path.join(best_dir, "..", "..", "redist", "MSVC", "**",
110-
vcruntime_plat, "Microsoft.VC141.CRT", "vcruntime140.dll")
110+
vcruntime_plat, "Microsoft.VC14*.CRT", "vcruntime140.dll")
111111
try:
112112
import glob
113113
vcruntime = glob.glob(vcredist, recursive=True)[-1]
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Fixes distutils not finding vcruntime140.dll with only the v142 toolset
2+
installed.

0 commit comments

Comments
 (0)