[Python-checkins] bpo-32146: Add documentation about frozen executables on Unix (GH-5850)

Victor Stinner webhook-mailer at python.org
Thu Jan 10 12:51:31 EST 2019


https://github.com/python/cpython/commit/bab4bbb4c9cd5d25ede21a1b8c99d56e3b8dae9d
commit: bab4bbb4c9cd5d25ede21a1b8c99d56e3b8dae9d
branch: master
author: Bo Bayles <bbayles at gmail.com>
committer: Victor Stinner <vstinner at redhat.com>
date: 2019-01-10T18:51:28+01:00
summary:

bpo-32146: Add documentation about frozen executables on Unix (GH-5850)

files:
A Misc/NEWS.d/next/Library/2018-02-25-10-17-23.bpo-32146.xOzUFW.rst
M Doc/library/multiprocessing.rst

diff --git a/Doc/library/multiprocessing.rst b/Doc/library/multiprocessing.rst
index 1d0920aa608b..a77815918d2b 100644
--- a/Doc/library/multiprocessing.rst
+++ b/Doc/library/multiprocessing.rst
@@ -186,6 +186,13 @@ A library which wants to use a particular start method should probably
 use :func:`get_context` to avoid interfering with the choice of the
 library user.
 
+.. warning::
+
+   The ``'spawn'`` and ``'forkserver'`` start methods cannot currently
+   be used with "frozen" executables (i.e., binaries produced by
+   packages like **PyInstaller** and **cx_Freeze**) on Unix.
+   The ``'fork'`` start method does work.
+
 
 Exchanging objects between processes
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
diff --git a/Misc/NEWS.d/next/Library/2018-02-25-10-17-23.bpo-32146.xOzUFW.rst b/Misc/NEWS.d/next/Library/2018-02-25-10-17-23.bpo-32146.xOzUFW.rst
new file mode 100644
index 000000000000..f071c7101806
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2018-02-25-10-17-23.bpo-32146.xOzUFW.rst
@@ -0,0 +1,2 @@
+Document the interaction between frozen executables and the spawn and
+forkserver start methods in multiprocessing.



More information about the Python-checkins mailing list