From: Jeremy Kloth Date: Mon, 10 Dec 2018 03:59:32 +0000 (-0700) Subject: bpo-35433: Properly detect installed SDK versions (GH-11009) X-Git-Tag: v3.8.0a1~310 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f46eccd0ffe65333035c3820886295b71c41ab6e;p=thirdparty%2FPython%2Fcpython.git bpo-35433: Properly detect installed SDK versions (GH-11009) --- diff --git a/PCbuild/build.bat b/PCbuild/build.bat index d4aebf555137..759aa5221b42 100644 --- a/PCbuild/build.bat +++ b/PCbuild/build.bat @@ -148,4 +148,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 09f11d3bba8c..f474e6f07e6d 100644 --- a/PCbuild/python.props +++ b/PCbuild/python.props @@ -77,14 +77,18 @@ --> <_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.17134.0 - 10.0.16299.0 - 10.0.15063.0 - 10.0.14393.0 - 10.0.10586.0 - 10.0.10240.0 + + <_RegistryVersion Condition="$(_RegistryVersion) != '' and !$(_RegistryVersion.EndsWith('.0'))">$(_RegistryVersion).0 + + + 10.0.10586.0 + $(_RegistryVersion) + + $(DefaultWindowsSDKVersion) + +