Commit 5ffd6d26 authored by Steve Dower's avatar Steve Dower Committed by Zachary Ware

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

parent cd848cbc
...@@ -107,7 +107,7 @@ def _find_vcvarsall(plat_spec): ...@@ -107,7 +107,7 @@ def _find_vcvarsall(plat_spec):
if best_dir: if best_dir:
vcredist = os.path.join(best_dir, "..", "..", "redist", "MSVC", "**", vcredist = os.path.join(best_dir, "..", "..", "redist", "MSVC", "**",
vcruntime_plat, "Microsoft.VC141.CRT", "vcruntime140.dll") vcruntime_plat, "Microsoft.VC14*.CRT", "vcruntime140.dll")
try: try:
import glob import glob
vcruntime = glob.glob(vcredist, recursive=True)[-1] vcruntime = glob.glob(vcredist, recursive=True)[-1]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment