From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Thu, 16 Sep 2021 18:54:25 +0000 (-0700) Subject: bpo-45220: Avoid automatically selecting the Windows 11 SDK preview when building... X-Git-Tag: v3.9.8~161 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7ad07eed885ae333d5dfc470b9c11ff2f7b229aa;p=thirdparty%2FPython%2Fcpython.git bpo-45220: Avoid automatically selecting the Windows 11 SDK preview when building (GH-28393) (cherry picked from commit f4b94b1f57827083990272b5f282aa1493ae2bf4) Co-authored-by: Steve Dower --- diff --git a/Misc/NEWS.d/next/Build/2021-09-16-18-00-43.bpo-45220.TgbkvW.rst b/Misc/NEWS.d/next/Build/2021-09-16-18-00-43.bpo-45220.TgbkvW.rst new file mode 100644 index 000000000000..8bbd634fa61a --- /dev/null +++ b/Misc/NEWS.d/next/Build/2021-09-16-18-00-43.bpo-45220.TgbkvW.rst @@ -0,0 +1,3 @@ +Avoid building with the Windows 11 SDK previews automatically. This may be +overridden by setting the ``DefaultWindowsSDKVersion`` environment variable +before building. diff --git a/PCbuild/python.props b/PCbuild/python.props index 42c67de4afa3..888de37caaa2 100644 --- a/PCbuild/python.props +++ b/PCbuild/python.props @@ -107,6 +107,9 @@ <_RegistryVersion Condition="$(_RegistryVersion) != '' and !$(_RegistryVersion.EndsWith('.0'))">$(_RegistryVersion).0 + + <_RegistryVersion Condition="$([System.Version]::Parse($(_RegistryVersion))) >= $([System.Version]::Parse(`10.0.22000.0`))">10.0.19041.0 + 10.0.10586.0 $(_RegistryVersion)