]> granicus.if.org Git - python/commitdiff
bpo-35699: fix distuils cannot detect Build Tools 2017 anymore (GH-11495)
authorMarc Schlaich <marc.schlaich@googlemail.com>
Sun, 20 Jan 2019 18:47:42 +0000 (19:47 +0100)
committerNed Deily <nad@python.org>
Sun, 20 Jan 2019 18:47:42 +0000 (13:47 -0500)
Lib/distutils/_msvccompiler.py
Misc/NEWS.d/next/Library/2019-01-11-07-09-25.bpo-35699.VDiENF.rst [new file with mode: 0644]

index 84b4ef59599deda4d160bf775b0ca62e2dbf2344..58b20a2102473394a64b627de3339da2e6cc5fe4 100644 (file)
@@ -78,6 +78,7 @@ def _find_vc2017():
             "-prerelease",
             "-requires", "Microsoft.VisualStudio.Component.VC.Tools.x86.x64",
             "-property", "installationPath",
+            "-products", "*",
         ], encoding="mbcs", errors="strict").strip()
     except (subprocess.CalledProcessError, OSError, UnicodeDecodeError):
         return None, None
diff --git a/Misc/NEWS.d/next/Library/2019-01-11-07-09-25.bpo-35699.VDiENF.rst b/Misc/NEWS.d/next/Library/2019-01-11-07-09-25.bpo-35699.VDiENF.rst
new file mode 100644 (file)
index 0000000..e632e7b
--- /dev/null
@@ -0,0 +1 @@
+Fixed detection of Visual Studio Build Tools 2017 in distutils
\ No newline at end of file