This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Multiprocessing freeze support unclear
Type: Stage:
Components: Library (Lib) Versions: Python 3.11, Python 3.10, Python 3.9
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: ronaldoussoren
Priority: normal Keywords:

Created on 2021-08-26 15:13 by ronaldoussoren, last changed 2022-04-11 14:59 by admin.

Messages (1)
msg400354 - (view) Author: Ronald Oussoren (ronaldoussoren) * (Python committer) Date: 2021-08-26 15:13
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.
History
Date User Action Args
2022-04-11 14:59:49adminsetgithub: 89179
2021-08-26 15:13:28ronaldoussorencreate