From 5fbccb763ce540c0d07be86660e0357bffc69d76 Mon Sep 17 00:00:00 2001 From: "Miss Islington (bot)" <31488909+miss-islington@users.noreply.github.com> Date: Sun, 20 Jun 2021 13:12:46 -0700 Subject: bpo-43298: Improved error message when building without the Windows SDK installed (GH-26800) (GH-26802) (cherry picked from commit 80190b3e533097b55077becddc75423318ab2371) Co-authored-by: Steve Dower Co-authored-by: Steve Dower --- .../next/Build/2021-06-19-11-50-03.bpo-43298.9ircMb.rst | 1 + PCbuild/python.props | 15 ++++++++++++--- 2 files changed, 13 insertions(+), 3 deletions(-) create mode 100644 Misc/NEWS.d/next/Build/2021-06-19-11-50-03.bpo-43298.9ircMb.rst 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 0000000..3bdc24b --- /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 419d5eb..4a56d50 100644 --- a/PCbuild/python.props +++ b/PCbuild/python.props @@ -108,9 +108,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) @@ -175,7 +184,7 @@ 11 12 - + $(MajorVersionNumber).$(MinorVersionNumber).$(MicroVersionNumber) $(MajorVersionNumber).$(MinorVersionNumber).$(MicroVersionNumber)$(ReleaseLevelName) -- cgit v0.12