From: Jeremy Kloth Date: Mon, 10 Dec 2018 20:31:37 +0000 (-0700) Subject: [3.6] bpo-35433: Properly detect installed SDK versions (GH-11009) X-Git-Tag: v3.6.8rc1~14 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f04cc5fc0d2f644cccb57543aae487ee30091924;p=thirdparty%2FPython%2Fcpython.git [3.6] bpo-35433: Properly detect installed SDK versions (GH-11009) --- diff --git a/PCbuild/build.bat b/PCbuild/build.bat index 5828b518b11a..0df64ee6e143 100644 --- a/PCbuild/build.bat +++ b/PCbuild/build.bat @@ -141,4 +141,5 @@ goto :eof :Version rem Display the current build version information -%MSBUILD% "%dir%python.props" /t:ShowVersionInfo /v:m /nologo %1 %2 %3 %4 %5 %6 %7 %8 %9 +call "%dir%find_msbuild.bat" %MSBUILD% +if not ERRORLEVEL 1 %MSBUILD% "%dir%pythoncore.vcxproj" /t:ShowVersionInfo /v:m /nologo %1 %2 %3 %4 %5 %6 %7 %8 %9 diff --git a/PCbuild/python.props b/PCbuild/python.props index 570f7fa88345..b29669b732b1 100644 --- a/PCbuild/python.props +++ b/PCbuild/python.props @@ -74,12 +74,17 @@ possible version). Since we limit WINVER to Windows 7 anyway, it doesn't really matter which WinSDK version we use. --> - <_RegistryVersion>$(Registry:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v10.0@ProductVersion) - <_RegistryVersion Condition="$(_RegistryVersion) == ''">$(Registry:HKEY_LOCAL_MACHINE\WOW6432Node\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v10.0@ProductVersion) - 10.0.15063.0 - 10.0.14393.0 - 10.0.10586.0 - 10.0.10240.0 + <_KitsRoot>$(Registry:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v10.0@InstallationFolder) + <_KitsRoot Condition="$(_KitsRoot) == ''">$(Registry:HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Microsoft SDKs\Windows\v10.0@InstallationFolder) + + + 10.0.10586.0 + 10.0.14393.0 + 10.0.15063.0 + + + + $(DefaultWindowsSDKVersion) @@ -187,5 +192,6 @@ +