aboutsummaryrefslogtreecommitdiff
path: root/ports/python3
diff options
context:
space:
mode:
authorRobert Schumacher <roschuma@microsoft.com>2021-04-29 13:30:24 -0700
committerGitHub <noreply@github.com>2021-04-29 13:30:24 -0700
commit4f942e1b11b43c2ee9399bb20cc775642d4f5c55 (patch)
tree08b20b3f725a0a062a39a9b0bd4f31f3a283c354 /ports/python3
parent387623e87860fd761f68e99a305a7b17f2f174e8 (diff)
downloadvcpkg-4f942e1b11b43c2ee9399bb20cc775642d4f5c55.tar.gz
vcpkg-4f942e1b11b43c2ee9399bb20cc775642d4f5c55.zip
[python3] Disable registry access to determine WinSDK (#17579)
Co-authored-by: Robert Schumacher <ras0219@outlook.com>
Diffstat (limited to 'ports/python3')
-rw-r--r--ports/python3/portfile.cmake5
-rw-r--r--ports/python3/vcpkg.json2
2 files changed, 6 insertions, 1 deletions
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)",