gh-106723: forward -Xfrozen_modules option to spawned process interpreters (GH-106724)
(cherry picked from commit
3dcac785810df4d9db50abe90847eaf03bbdaaf4)
Co-authored-by: Felipe A. Hernandez <ergoithz@gmail.com>
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
Co-authored-by: Gregory P. Smith <greg@krypto.org>
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:
--- /dev/null
+Propagate ``frozen_modules`` to multiprocessing spawned process interpreters.