Skip to content
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

bpo-46023: Fix makesetup handling of disabled rule (GH-30001) #30001

Merged
merged 1 commit into from
Dec 10, 2021
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
bpo-46023: Fix makesetup handling of disabled rule
Signed-off-by: Christian Heimes <christian@python.org>
  • Loading branch information
tiran committed Dec 9, 2021
commit f0be9535b933bfdf19af6a3faa2f4e67229a5d96
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
:program:`makesetup` no longer builds extensions that have been marked as
*disabled*. This allows users to disable modules in ``Modules/Setup.local``.
3 changes: 3 additions & 0 deletions Modules/makesetup
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,9 @@ sed -e 's/[ ]*#.*//' -e '/^[ ]*$/d' |
cpps="\$(MODULE_${mods_upper}_CFLAGS)"
libs="\$(MODULE_${mods_upper}_LDFLAGS)"
fi
case $DISABLED in
*$mods*) doconfig=disabled;;
esac
case $doconfig in
yes)
LIBS="$LIBS $libs"
Expand Down