-
-
Notifications
You must be signed in to change notification settings - Fork 31.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] bpo-32592: Drop support for Windows Vista #5231
Conversation
Windows Vista extended support ended in April 2017. As stated in PEP 11, Python 3.7 drops support for Windows Vista and now requires Windows 7 or newer.
Hum, the change should be mentionned in Doc/whatsnew/3.7.rst. |
AppVeyor compilation failed with: "C:\Program Files (x86)\Windows Kits\10\Include\10.0.16299.0\shared\sdkddkver.h(289): fatal error C1189: #error: NTDDI_VERSION setting conflicts with _WIN32_WINNT setting [C:\projects\cpython\PCbuild\pythoncore.vcxproj]" |
Include/internal/condvar.h
Outdated
@@ -34,58 +34,13 @@ | |||
#define WIN32_LEAN_AND_MEAN | |||
#include <windows.h> | |||
|
|||
/* options */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe you could change the comment before #define Py_HAVE_CONDVAR
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in fact, should we remove all the references to Vista when we drop the support of Vista ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I updated the comment.
@vstinner There is some references to Vista in the |
Rephrase also a comment in condvar.h.
I don't know this directory, so I prefer to leave it unchanged. |
@vstinner ok then in this case, the PR seems to be right. |
Python/condvar.h
Outdated
* example native support on VISTA and onwards. | ||
*/ | ||
|
||
#if _PY_EMULATED_WIN_CV |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See https://bugs.python.org/issue29871 before pulling this code out - our alternate code isn't 100% correct yet.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, I can revert this change and propose it in https://bugs.python.org/issue29871.
My change should have no effect on Windows 7 and newer. Why do you prefer to keep the unused emulation code (until bpo-29871 is fixed)?
@zooba: Do you understand why my change breaks the compilation? |
Include/internal/condvar.h
Outdated
* to target Windows Vista. Modify this macro to enable them. | ||
*/ | ||
#ifndef _PY_EMULATED_WIN_CV | ||
#define _PY_EMULATED_WIN_CV 1 /* use emulated condition variables */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't removing this a mistake? I think the SRWLOCK
version was tried in another issue that was abandoned.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hum, this code seems to sensitive and my change may conflict with https://bugs.python.org/issue29871 so I reverted this change and will open a new dedicated PR.
"posixmodule.obj : error LNK2001: unresolved external symbol _GetMaximumProcessorCount [C:\projects\cpython\PCbuild\pythoncore.vcxproj]" Oh, my posixmodule.c change doesn't work :-( Extract of pythoninfo:
I understand that AppVeyor runs Windows 10 and Python was built by Visual Studio 2017 https://msdn.microsoft.com/fr-fr/library/windows/desktop/dd405489(v=vs.85).aspx "Remarks: To compile an application that uses this function, set _WIN32_WINNT >= 0x0601. For more information, see Using the Windows Headers." Aha. I need to try to understand why changing _WIN32_WINNT failed. But my Windows VM is down :-) |
Hum, I'm not sure that my PR is correct anymore. I change its status to WIP, I will rework on it, once I get again access to a Windows VM to fix my PR. |
Some news about this PR ?
…--
Stéphane Wirtel - http://wirtel.be - @matrixise
|
Windows Vista extended support ended in April 2017. As stated in PEP
11, Python 3.7 drops support for Windows Vista and now requires
Windows 7 or newer.
https://bugs.python.org/issue32592