bpo-38088: Fixes distutils not finding vcruntime140.dll with only v142 toolset installed (GH-15849)

This commit is contained in:
Steve Dower 2019-09-10 14:52:23 +01:00 committed by Zachary Ware
parent 182e1d1f84
commit cd8221152d
2 changed files with 3 additions and 1 deletions

View file

@ -107,7 +107,7 @@ def _find_vcvarsall(plat_spec):
if best_dir:
vcredist = os.path.join(best_dir, "..", "..", "redist", "MSVC", "**",
vcruntime_plat, "Microsoft.VC141.CRT", "vcruntime140.dll")
vcruntime_plat, "Microsoft.VC14*.CRT", "vcruntime140.dll")
try:
import glob
vcruntime = glob.glob(vcredist, recursive=True)[-1]