From 7d957f01324f1305b57058263b0f046cd666941f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Jean?= Date: Thu, 19 Jan 2023 05:13:49 +0800 Subject: [PATCH] guard multiprocessing code with main (#31992) * guard multiprocessing code with main * Update fix_build_deps.py * merge last master * add back execution bit to fix_build_deps Co-authored-by: AJ Heller --- tools/distrib/fix_build_deps.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/distrib/fix_build_deps.py b/tools/distrib/fix_build_deps.py index 531b0f2de03..212b2c04203 100755 --- a/tools/distrib/fix_build_deps.py +++ b/tools/distrib/fix_build_deps.py @@ -640,7 +640,7 @@ def make_library(library): return (library, error, deps, external_deps) -if __name__ == "__main__": +def main() -> None: update_libraries = [] for library in sorted(consumes.keys()): if library in no_update: @@ -663,3 +663,7 @@ if __name__ == "__main__": if error: sys.exit(1) + + +if __name__ == "__main__": + main()