-
-
Notifications
You must be signed in to change notification settings - Fork 34.5k
bpo-45573: Move mandatory core modules to Modules/Setup.bootstrap (GH-29616) #29616
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
a613d44
bpo-45573: Move mandatory core modules to Modules/Setup.core
tiran 8c29e52
Use Setup.bootstrap
tiran e11c9b6
Fix comment
tiran e749a53
Single quotes don't work
tiran db3e45e
Consolidate comments about extensions in Setup.bootstrap
tiran File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next
Next commit
bpo-45573: Move mandatory core modules to Modules/Setup.core
Signed-off-by: Christian Heimes <christian@python.org>
- Loading branch information
commit a613d444f95bbb1b504de3e2a6ba569da6b98109
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
Misc/NEWS.d/next/Build/2021-11-18-13-31-02.bpo-45573.LCjGB8.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Mandatory core modules are now in ``Modules/Setup.core`` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| # -*- makefile -*- | ||
|
|
||
| # --- | ||
| # Built-in modules required to get a functioning interpreter; | ||
| # cannot be built as shared! | ||
|
|
||
| # module C APIs are used in core | ||
| atexit atexitmodule.c | ||
| faulthandler faulthandler.c | ||
| posix posixmodule.c | ||
| _signal signalmodule.c | ||
| _tracemalloc _tracemalloc.c | ||
|
|
||
| # modules used by importlib, deepfreeze, freeze, runpy, and sysconfig | ||
| _codecs _codecsmodule.c | ||
| _collections _collectionsmodule.c | ||
| errno errnomodule.c | ||
| _io _io/_iomodule.c _io/iobase.c _io/fileio.c _io/bytesio.c _io/bufferedio.c _io/textio.c _io/stringio.c | ||
| itertools itertoolsmodule.c | ||
| _sre _sre.c | ||
| _thread _threadmodule.c | ||
| time timemodule.c | ||
| _weakref _weakref.c | ||
|
tiran marked this conversation as resolved.
Outdated
|
||
|
|
||
| # commonly used core modules | ||
| _abc _abc.c | ||
| _functools _functoolsmodule.c | ||
| _locale _localemodule.c | ||
| _operator _operator.c | ||
| _stat _stat.c | ||
| _symtable symtablemodule.c | ||
|
|
||
| # for systems without $HOME env, used by site._getuserbase() | ||
| pwd pwdmodule.c | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6030,6 +6030,31 @@ AC_DEFUN([PY_STDLIB_MOD], [ | |
| m4_popdef([modstate])dnl | ||
| ]) | ||
|
|
||
| dnl Define simple, always enabled stdlib extension module | ||
| dnl PY_STDLIB_MOD_SIMPLE([NAME], [CFLAGS], [LDFLAGS]) | ||
| dnl cflags and ldflags are optional | ||
| AC_DEFUN([PY_STDLIB_MOD_SIMPLE], [ | ||
| m4_pushdef([modcond], [MODULE_]m4_toupper([$1]))dnl | ||
| dnl _MODULE_BLOCK_ADD(modcond, [yes]) | ||
| dnl AM_CONDITIONAL(modcond, [true]) | ||
|
tiran marked this conversation as resolved.
Outdated
|
||
| m4_ifval([$2], [ | ||
| _MODULE_BLOCK_ADD([MODULE_]m4_toupper([$1])[_CFLAGS], [$2]) | ||
| ]) | ||
| m4_ifval([$3], [ | ||
| _MODULE_BLOCK_ADD([MODULE_]m4_toupper([$1])[_LDFLAGS], [$3]) | ||
| ]) | ||
| m4_popdef([modcond])dnl | ||
| ]) | ||
| dnl alias for static core modules (Modules/Setup.core) | ||
| AU_ALIAS([PY_STDLIB_MOD_CORE], [PY_STDLIB_MOD_SIMPLE]) | ||
|
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. Why the alias? |
||
|
|
||
| dnl static modules in Modules/Setup.core | ||
| PY_STDLIB_MOD_SIMPLE([io], [-I\$(srcdir)/Modules/_io], [$TIMEMODULE_LIB]) | ||
|
|
||
| dnl always enabled extension modules | ||
| PY_STDLIB_MOD_SIMPLE([time], [], [$TIMEMODULE_LIB]) | ||
| PY_STDLIB_MOD_SIMPLE([_datetime], [], [$TIMEMODULE_LIB]) | ||
|
|
||
| dnl platform specific extensions | ||
| PY_STDLIB_MOD([ossaudiodev], | ||
| [], [test "$ac_cv_header_linux_soundcard_h" = yes -o "$ac_cv_header_sys_soundcard_h" = yes]) | ||
|
|
@@ -6062,7 +6087,7 @@ fi | |
| echo "creating Makefile" >&AS_MESSAGE_FD | ||
| $SHELL $srcdir/Modules/makesetup -c $srcdir/Modules/config.c.in \ | ||
| -s Modules \ | ||
| Modules/Setup.local $srcdir/Modules/Setup | ||
| Modules/Setup.local $srcdir/Modules/Setup.core $srcdir/Modules/Setup | ||
| mv config.c Modules | ||
|
|
||
| if test -z "$PKG_CONFIG"; then | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
Uh oh!
There was an error while loading. Please reload this page.