-
-
Notifications
You must be signed in to change notification settings - Fork 35k
gh-111650: Ensure pyconfig.h includes Py_GIL_DISABLED on Windows #112778
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
Changes from all commits
4feb2ce
0243c40
094ccd9
85811ea
c33aa01
d0b30bb
c80c852
313618b
6c067b7
c74133b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| Ensures the ``Py_GIL_DISABLED`` preprocessor variable is defined in | ||
| :file:`pyconfig.h` so that extension modules written in C are able to use | ||
| it. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -739,4 +739,7 @@ Py_NO_ENABLE_SHARED to find out. Also support MS_NO_COREDLL for b/w compat */ | |
| /* Define if libssl has X509_VERIFY_PARAM_set1_host and related function */ | ||
| #define HAVE_X509_VERIFY_PARAM_SET1_HOST 1 | ||
|
|
||
| /* Define if you want to disable the GIL */ | ||
| #undef Py_GIL_DISABLED | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do you want to rename the
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's not actually a template, it's a totally valid and usable header file. In the default case (for now), For editing in an IDE, we need some kind of actual header file available or else all the code assistance tools will fail. Rather than requiring the IDE understand the build directory (which VS can do, but others may not), this allows us to have a default |
||
|
|
||
| #endif /* !Py_CONFIG_H */ | ||
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.
Did you want to keep this?
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 don't think it slows down CI enough to be a problem.