From: Marc Schlaich Date: Sun, 20 Jan 2019 18:47:42 +0000 (+0100) Subject: bpo-35699: fix distuils cannot detect Build Tools 2017 anymore (GH-11495) X-Git-Tag: v3.8.0a1~69 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b2dc4a3313c236fedbd6df664722cd47f3d91a72;p=python bpo-35699: fix distuils cannot detect Build Tools 2017 anymore (GH-11495) --- diff --git a/Lib/distutils/_msvccompiler.py b/Lib/distutils/_msvccompiler.py index 84b4ef5959..58b20a2102 100644 --- a/Lib/distutils/_msvccompiler.py +++ b/Lib/distutils/_msvccompiler.py @@ -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 index 0000000000..e632e7bdcf --- /dev/null +++ b/Misc/NEWS.d/next/Library/2019-01-11-07-09-25.bpo-35699.VDiENF.rst @@ -0,0 +1 @@ +Fixed detection of Visual Studio Build Tools 2017 in distutils \ No newline at end of file