[New-bugs-announce] [issue45016] Multiprocessing freeze support unclear

Ronald Oussoren report at bugs.python.org
Thu Aug 26 11:13:28 EDT 2021


New submission from Ronald Oussoren <ronaldoussoren at mac.com>:

The requirements on a freezing tool to work with the freeze support in the multiprocessing library are unclear.

In particular, I'm trying to support multiprocessing in py2app and cannot rely on the documentation to implement that support.

The particular issue I run into:
- With py2app "sys.executable" points to a regular interpreter
- py2app sets sys.frozen to "macosx_app" or "macosx_plugin"
- Multiprocessing.spawn.get_command_line() assumes that a special command-line should be used when "sys.frozen" is set and there is no way to disable this.

The easiest way for me to fix this issue is to drop setting sys.frozen in py2app, although I have no idea what other code this might break.

----------
components: Library (Lib)
messages: 400354
nosy: ronaldoussoren
priority: normal
severity: normal
status: open
title: Multiprocessing freeze support unclear
versions: Python 3.10, Python 3.11, Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45016>
_______________________________________


More information about the New-bugs-announce mailing list