From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Mon, 12 Jul 2021 15:11:33 +0000 (-0700) Subject: bpo-43298: Improved error message when building without the Windows SDK installed... X-Git-Tag: v3.9.7~168 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e7009f4f9a6a55036ef628a07bedc8dab1aa851e;p=thirdparty%2FPython%2Fcpython.git bpo-43298: Improved error message when building without the Windows SDK installed (GH-26800) (#26803) (cherry picked from commit 80190b3e533097b55077becddc75423318ab2371) Co-authored-by: Steve Dower --- diff --git a/Misc/NEWS.d/next/Build/2021-06-19-11-50-03.bpo-43298.9ircMb.rst b/Misc/NEWS.d/next/Build/2021-06-19-11-50-03.bpo-43298.9ircMb.rst new file mode 100644 index 000000000000..3bdc24b147a3 --- /dev/null +++ b/Misc/NEWS.d/next/Build/2021-06-19-11-50-03.bpo-43298.9ircMb.rst @@ -0,0 +1 @@ +Improved error message when building without a Windows SDK installed. diff --git a/PCbuild/python.props b/PCbuild/python.props index acbf4e005ec5..60625101b472 100644 --- a/PCbuild/python.props +++ b/PCbuild/python.props @@ -109,9 +109,18 @@ 10.0.10586.0 - $(_RegistryVersion) + $(_RegistryVersion) - + + + + <_Message>Failed to locate a Windows SDK installation. + <_Message>$(_Message) If the build fails, please use the Visual Studio Installer to install the Windows SDK. + <_Message>$(_Message) (Ignore the version number specified in the error message and select the latest.) + + + + $(DefaultWindowsSDKVersion) @@ -176,7 +185,7 @@ 11 12 - + $(MajorVersionNumber).$(MinorVersionNumber).$(MicroVersionNumber) $(MajorVersionNumber).$(MinorVersionNumber).$(MicroVersionNumber)$(ReleaseLevelName)