]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-46023: Skip build if module is marked as DISABLED (GH-30100)
authorChristian Heimes <christian@python.org>
Tue, 14 Dec 2021 14:42:46 +0000 (16:42 +0200)
committerGitHub <noreply@github.com>
Tue, 14 Dec 2021 14:42:46 +0000 (15:42 +0100)
Modules/Setup.bootstrap
Modules/makesetup

index d543f087b89fc2702b2edb17c314a03f01e2fa28..f23da60b37ad065feb7d2ac1727d51fdb171e876 100644 (file)
@@ -3,6 +3,7 @@
 # ---
 # Built-in modules required to get a functioning interpreter;
 # cannot be built as shared!
+*static*
 
 # module C APIs are used in core
 atexit atexitmodule.c
index 6d83b8f0cbb7a49b56852490f25b3f742a7e410c..3909650ed7c417c6c1567000a603586e769fe9a3 100755 (executable)
@@ -207,7 +207,10 @@ sed -e 's/[        ]*#.*//' -e '/^[        ]*$/d' |
                        libs="\$(MODULE_${mods_upper}_LDFLAGS)"
                fi
                case $DISABLED in
-               *$mods*) doconfig=disabled;;
+               *$mods*)
+                       # disabled by previous rule / Setup file
+                       continue
+                       ;;
                esac
                case $doconfig in
                yes)