Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Modules/Setup.bootstrap.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# -*- makefile -*-

# Mark bootstrap modules explicitly so older Makefile recipes work
# without passing -b to makesetup (gh-161364).
*bootstrap*

# ---
# Built-in modules required to get a functioning interpreter;
# cannot be built as shared!
Expand Down
3 changes: 2 additions & 1 deletion Modules/makesetup
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ set -e
# The Setup file following a -b option holds the *bootstrap* modules:
# the static modules that the build helper programs (_freeze_module,
# _bootstrap_python) are linked with. They are also regular modules of
# the final build.
# the final build. A *bootstrap* line in a Setup file does the same for
# the rest of that file.
# Setup files after a -n option are used for their variables, modules
# and libraries but not for their .o files.
#
Expand Down
2 changes: 1 addition & 1 deletion Tools/build/check_extension_modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ def parse_setup_file(self, setup_file: pathlib.Path) -> Iterable[ModuleInfo]:
state = ModuleState.BUILTIN
case ["*disabled*"]:
state = ModuleState.DISABLED
case ["*noconfig*"]:
case ["*noconfig*"] | ["*bootstrap*"]:
continue
case [*items]:
if state == ModuleState.DISABLED:
Expand Down
Loading