Skip to content

Commit

Permalink
bpo-38088: Fixes distutils not finding vcruntime140.dll with only v14…
Browse files Browse the repository at this point in the history
…2 toolset installed (pythonGH-15849)
  • Loading branch information
zooba authored and zware committed Sep 10, 2019
1 parent 182e1d1 commit cd82211
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/distutils/_msvccompiler.py
Expand Up @@ -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]
Expand Down
@@ -0,0 +1,2 @@
Fixes distutils not finding vcruntime140.dll with only the v142 toolset
installed.

0 comments on commit cd82211

Please sign in to comment.