]> granicus.if.org Git - python/commitdiff
bpo-38088: Fixes distutils not finding vcruntime140.dll with only v142 toolset instal...
authorSteve Dower <steve.dower@python.org>
Tue, 10 Sep 2019 13:52:23 +0000 (14:52 +0100)
committerZachary Ware <zachary.ware@gmail.com>
Tue, 10 Sep 2019 13:52:23 +0000 (14:52 +0100)
Lib/distutils/_msvccompiler.py
Misc/NEWS.d/next/Windows/2019-09-10-14-17-25.bpo-38088.FOvWSM.rst [new file with mode: 0644]

index 6e14f330d7f4d2345e17a94e6fca3a31398000fc..e8e4b717b9736f22ddbde50fd57499eb33e76d68 100644 (file)
@@ -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]
diff --git a/Misc/NEWS.d/next/Windows/2019-09-10-14-17-25.bpo-38088.FOvWSM.rst b/Misc/NEWS.d/next/Windows/2019-09-10-14-17-25.bpo-38088.FOvWSM.rst
new file mode 100644 (file)
index 0000000..37bdeea
--- /dev/null
@@ -0,0 +1,2 @@
+Fixes distutils not finding vcruntime140.dll with only the v142 toolset
+installed.