mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
bpo-38088: Fixes distutils not finding vcruntime140.dll with only v142 toolset installed (GH-15849)
This commit is contained in:
parent
182e1d1f84
commit
cd8221152d
2 changed files with 3 additions and 1 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue