mirror of https://github.com/python/cpython
bpo-46023: Fix makesetup handling of disabled rule (GH-30001)
This commit is contained in:
parent
74b23c97cd
commit
036bbb1d1b
|
@ -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``.
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue