GeezerVison is showing github.com — bpo-45573: Move mandatory core modules to Modules/Setup.bootstrap (GH-29616) by tiran · Pull Request #29616 · python/cpython
Conversation
tiran
commented
Nov 18, 2021
•
edited by bedevere-bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
erlend-aasland
left a comment
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
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.
This is a nice improvement. Not all modules that #define Py_BUILD_CORE_MODULE are included in Modules/Setup.core. Is Modules/Setup.builtin a more "correct" name?
Modules that define Py_BUILD_CORE_MODULE
$ grep -r "#.*define.*Py_BUILD_CORE_MODULE" Modules | sort
Modules/_abc.c:# define Py_BUILD_CORE_MODULE 1
Modules/_asynciomodule.c:# define Py_BUILD_CORE_MODULE 1
Modules/_blake2/blake2b_impl.c:# define Py_BUILD_CORE_MODULE 1
Modules/_blake2/blake2module.c:# define Py_BUILD_CORE_MODULE 1
Modules/_blake2/blake2s_impl.c:# define Py_BUILD_CORE_MODULE 1
Modules/_ctypes/_ctypes.c:# define Py_BUILD_CORE_MODULE 1
Modules/_ctypes/callbacks.c:# define Py_BUILD_CORE_MODULE 1
Modules/_ctypes/cfield.c:# define Py_BUILD_CORE_MODULE 1
Modules/_ctypes/stgdict.c:# define Py_BUILD_CORE_MODULE 1
Modules/_cursesmodule.c:# define Py_BUILD_CORE_MODULE 1
Modules/_datetimemodule.c:# define Py_BUILD_CORE_MODULE 1
Modules/_decimal/_decimal.c:# define Py_BUILD_CORE_MODULE 1
Modules/_hashopenssl.c:# define Py_BUILD_CORE_MODULE 1
Modules/_heapqmodule.c:# define Py_BUILD_CORE_MODULE 1
Modules/_json.c:# define Py_BUILD_CORE_MODULE 1
Modules/_lsprof.c:# define Py_BUILD_CORE_MODULE 1
Modules/_pickle.c:# define Py_BUILD_CORE_MODULE 1
Modules/_posixsubprocess.c:# define Py_BUILD_CORE_MODULE 1
Modules/_queuemodule.c:# define Py_BUILD_CORE_MODULE 1
Modules/_randommodule.c:# define Py_BUILD_CORE_MODULE 1
Modules/_sha3/sha3module.c:# define Py_BUILD_CORE_MODULE 1
Modules/_struct.c:# define Py_BUILD_CORE_MODULE 1
Modules/_testinternalcapi.c:# define Py_BUILD_CORE_MODULE 1
Modules/_testmultiphase.c:# define Py_BUILD_CORE_MODULE 1
Modules/_xxsubinterpretersmodule.c:# define Py_BUILD_CORE_MODULE 1
Modules/_zoneinfo.c:# define Py_BUILD_CORE_MODULE 1
Modules/arraymodule.c:# define Py_BUILD_CORE_MODULE 1
Modules/binascii.c:# define Py_BUILD_CORE_MODULE 1
Modules/cmathmodule.c:# define Py_BUILD_CORE_MODULE 1
Modules/mathmodule.c:# define Py_BUILD_CORE_MODULE 1
Modules/md5module.c:# define Py_BUILD_CORE_MODULE 1
Modules/sha1module.c:# define Py_BUILD_CORE_MODULE 1
Modules/sha256module.c:# define Py_BUILD_CORE_MODULE 1
Modules/sha512module.c:# define Py_BUILD_CORE_MODULE 1
Modules/unicodedata.c:# define Py_BUILD_CORE_MODULE 1
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Comment on lines
6008
to
6009
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.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
This is a nice improvement. Not all modules that #define Py_BUILD_CORE_MODULE are included in Modules/Setup.core. Is Modules/Setup.builtin a more "correct" name?
The term core is overloaded. I have not found a better term, though.
Py_BUILD_CORE_MODULE enables some private APIs that not available to 3rd party extension modules. The flag is orthogonal to static / shared state. You can build a shared C extension that uses core module APIs.
Setup.builtin does not fit well either. Other modules can be build as builtin modules, too. Setup.mandatory is also incorrect. Some modules like _abc could be build as shared extensions. Maybe Setup.bootstrap ?
|
erlend-aasland reacted with eyes emoji
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Yeah, Setup.bootstrap sounds like the best candidate.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
tiran
changed the title
bpo-45573: Move mandatory core modules to Modules/Setup.core
bpo-45573: Move mandatory core modules to Modules/Setup.bootstrap
Nov 19, 2021
Uh oh!
There was an error while loading. Please reload this page.
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.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
tiran reacted with hooray emoji
tiran
changed the title
bpo-45573: Move mandatory core modules to Modules/Setup.bootstrap
bpo-45573: Move mandatory core modules to Modules/Setup.bootstrap (GH-29616)
Nov 19, 2021
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|