mirror of
https://github.com/python/cpython.git
synced 2025-08-21 17:25:34 +00:00
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:
parent
21dacea6ad
commit
2ed0ac6bf1
2 changed files with 3 additions and 1 deletions
|
@ -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]
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
Fixes distutils not finding vcruntime140.dll with only the v142 toolset
|
||||||
|
installed.
|
Loading…
Add table
Add a link
Reference in a new issue