From: Felipe A. Hernandez Date: Fri, 28 Jul 2023 05:04:26 +0000 (+0100) Subject: gh-106723: forward -Xfrozen_modules option to spawned process interpreters (#106724) X-Git-Tag: v3.13.0a1~1160 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3dcac785810df4d9db50abe90847eaf03bbdaaf4;p=thirdparty%2FPython%2Fcpython.git gh-106723: forward -Xfrozen_modules option to spawned process interpreters (#106724) Co-authored-by: Kumar Aditya Co-authored-by: Gregory P. Smith --- diff --git a/Lib/subprocess.py b/Lib/subprocess.py index fbc76b8d0f14..6df5dd551ea6 100644 --- a/Lib/subprocess.py +++ b/Lib/subprocess.py @@ -346,7 +346,7 @@ def _args_from_interpreter_flags(): if dev_mode: args.extend(('-X', 'dev')) for opt in ('faulthandler', 'tracemalloc', 'importtime', - 'showrefcount', 'utf8'): + 'frozen_modules', 'showrefcount', 'utf8'): if opt in xoptions: value = xoptions[opt] if value is True: diff --git a/Misc/NEWS.d/next/Core and Builtins/2023-07-13-14-55-45.gh-issue-106723.KsMufQ.rst b/Misc/NEWS.d/next/Core and Builtins/2023-07-13-14-55-45.gh-issue-106723.KsMufQ.rst new file mode 100644 index 000000000000..207f397f17d3 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/2023-07-13-14-55-45.gh-issue-106723.KsMufQ.rst @@ -0,0 +1 @@ +Propagate ``frozen_modules`` to multiprocessing spawned process interpreters.