From 4f942e1b11b43c2ee9399bb20cc775642d4f5c55 Mon Sep 17 00:00:00 2001 From: Robert Schumacher Date: Thu, 29 Apr 2021 13:30:24 -0700 Subject: [python3] Disable registry access to determine WinSDK (#17579) Co-authored-by: Robert Schumacher --- ports/python3/portfile.cmake | 5 +++++ ports/python3/vcpkg.json | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'ports/python3') diff --git a/ports/python3/portfile.cmake b/ports/python3/portfile.cmake index 3a90a7913..d19f5552c 100644 --- a/ports/python3/portfile.cmake +++ b/ports/python3/portfile.cmake @@ -88,6 +88,11 @@ if(VCPKG_TARGET_IS_WINDOWS OR VCPKG_TARGET_IS_UWP) "/p:ForceImportBeforeCppTargets=${SOURCE_PATH}/PCbuild/python_vcpkg.props" ) endif() + string(REPLACE "\\" "" WindowsSDKVersion "$ENV{WindowsSDKVersion}") + list(APPEND OPTIONS + "/p:WindowsTargetPlatformVersion=${WindowsSDKVersion}" + "/p:DefaultWindowsSDKVersion=${WindowsSDKVersion}" + ) if(VCPKG_TARGET_IS_UWP) list(APPEND OPTIONS "/p:IncludeUwp=true") else() diff --git a/ports/python3/vcpkg.json b/ports/python3/vcpkg.json index f997398f8..5f7675cd0 100644 --- a/ports/python3/vcpkg.json +++ b/ports/python3/vcpkg.json @@ -1,7 +1,7 @@ { "name": "python3", "version-string": "3.9.2", - "port-version": 1, + "port-version": 2, "description": "The Python programming language", "homepage": "https://github.com/python/cpython", "supports": "!(arm | uwp)", -- cgit v1.2.3