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

(cherry picked from commit cd8221152d)

Co-authored-by: Steve Dower <steve.dower@python.org>
This commit is contained in:
Miss Islington (bot) 2019-09-10 07:42:26 -07:00 committed by Steve Dower
parent 21dacea6ad
commit 2ed0ac6bf1
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]