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 committed Sep 10, 2019
1 parent d94b762 commit 8ddeccf
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 @@ -95,7 +95,7 @@ def _find_vcvarsall(plat_spec):
vcruntime_plat = 'x64' if 'amd64' in plat_spec else 'x86'
if best_dir:
vcredist = os.path.join(best_dir, "..", "..", "redist", "MSVC", "**",
"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 8ddeccf

Please sign in to comment.