mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
gh-124487: Require at least Windows 10 SDK and update install check (GH-124672)
This commit is contained in:
parent
077e7ef6a0
commit
fac5e7aa17
4 changed files with 11 additions and 9 deletions
|
@ -3086,11 +3086,13 @@ private:
|
|||
LOC_STRING *pLocString = nullptr;
|
||||
|
||||
if (IsWindowsServer()) {
|
||||
if (IsWindowsVersionOrGreater(6, 2, 0)) {
|
||||
BalLog(BOOTSTRAPPER_LOG_LEVEL_STANDARD, "Target OS is Windows Server 2012 or later");
|
||||
if (IsWindowsVersionOrGreater(10, 0, 0)) {
|
||||
BalLog(BOOTSTRAPPER_LOG_LEVEL_STANDARD, "Target OS is Windows Server 2016 or later");
|
||||
return;
|
||||
} else if (IsWindowsVersionOrGreater(6, 2, 0)) {
|
||||
BalLog(BOOTSTRAPPER_LOG_LEVEL_ERROR, "Detected Windows Server 2012");
|
||||
} else if (IsWindowsVersionOrGreater(6, 1, 1)) {
|
||||
BalLog(BOOTSTRAPPER_LOG_LEVEL_STANDARD, "Detected Windows Server 2008 R2");
|
||||
BalLog(BOOTSTRAPPER_LOG_LEVEL_ERROR, "Detected Windows Server 2008 R2");
|
||||
} else if (IsWindowsVersionOrGreater(6, 1, 0)) {
|
||||
BalLog(BOOTSTRAPPER_LOG_LEVEL_ERROR, "Detected Windows Server 2008 R2");
|
||||
} else if (IsWindowsVersionOrGreater(6, 0, 0)) {
|
||||
|
@ -3104,8 +3106,7 @@ private:
|
|||
BalLog(BOOTSTRAPPER_LOG_LEVEL_STANDARD, "Target OS is Windows 10 or later");
|
||||
return;
|
||||
} else if (IsWindows8Point1OrGreater()) {
|
||||
BalLog(BOOTSTRAPPER_LOG_LEVEL_STANDARD, "Target OS is Windows 8.1");
|
||||
return;
|
||||
BalLog(BOOTSTRAPPER_LOG_LEVEL_ERROR, "Detected Windows 8.1");
|
||||
} else if (IsWindows8OrGreater()) {
|
||||
BalLog(BOOTSTRAPPER_LOG_LEVEL_ERROR, "Detected Windows 8");
|
||||
} else if (IsWindows7OrGreater()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue