[3.12] gh-106723: forward -Xfrozen_modules option to spawned process interpreters (GH-106724) (#107367)

gh-106723: forward -Xfrozen_modules option to spawned process interpreters (GH-106724)
(cherry picked from commit 3dcac78581)

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>
This commit is contained in:
Miss Islington (bot) 2023-07-27 23:24:29 -07:00 committed by GitHub
parent 17ce87ba7f
commit 4f72a9a2e0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -346,7 +346,7 @@ def _args_from_interpreter_flags():
if dev_mode: if dev_mode:
args.extend(('-X', 'dev')) args.extend(('-X', 'dev'))
for opt in ('faulthandler', 'tracemalloc', 'importtime', for opt in ('faulthandler', 'tracemalloc', 'importtime',
'showrefcount', 'utf8'): 'frozen_modules', 'showrefcount', 'utf8'):
if opt in xoptions: if opt in xoptions:
value = xoptions[opt] value = xoptions[opt]
if value is True: if value is True:

View file

@ -0,0 +1 @@
Propagate ``frozen_modules`` to multiprocessing spawned process interpreters.