Skip to content

Commit 413df57

Browse files
miss-islingtonErlend Egeberg Aasland
and
Erlend Egeberg Aasland
authored
bpo-30757: Improve "How to make stand-alone binaries" FAQ (GH-26309) (GH-26311)
Co-authored-by: denfromufa <[email protected]> Co-authored-by: Ken Jin <[email protected]> (cherry picked from commit 2a1e669) Co-authored-by: Erlend Egeberg Aasland <[email protected]> Co-authored-by: Erlend Egeberg Aasland <[email protected]>
1 parent 37da1f0 commit 413df57

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

Doc/faq/programming.rst

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ Static type checkers such as `Mypy <http://mypy-lang.org/>`_,
6666
source code.
6767

6868

69+
.. _faq-create-standalone-binary:
70+
6971
How can I create a stand-alone binary from a Python script?
7072
-----------------------------------------------------------
7173

@@ -89,14 +91,15 @@ only contains those built-in modules which are actually used in the program. It
8991
then compiles the generated C code and links it with the rest of the Python
9092
interpreter to form a self-contained binary which acts exactly like your script.
9193

92-
Obviously, freeze requires a C compiler. There are several other utilities
93-
which don't:
94-
95-
* `py2exe <http://www.py2exe.org/>`_ for Windows binaries
96-
* `py2app <https://github.com/ronaldoussoren/py2app>`_ for Mac OS X binaries
97-
* `cx_Freeze <https://cx-freeze.readthedocs.io/en/latest/>`_ for cross-platform
98-
binaries
94+
The following packages can help with the creation of console and GUI
95+
executables:
9996

97+
* `Nuitka <https://nuitka.net/>`_ (Cross-platform)
98+
* `PyInstaller <http://www.pyinstaller.org/>`_ (Cross-platform)
99+
* `PyOxidizer <https://pyoxidizer.readthedocs.io/en/stable/>`_ (Cross-platform)
100+
* `cx_Freeze <https://marcelotduarte.github.io/cx_Freeze/>`_ (Cross-platform)
101+
* `py2app <https://github.com/ronaldoussoren/py2app>`_ (macOS only)
102+
* `py2exe <http://www.py2exe.org/>`_ (Windows only)
100103

101104
Are there coding standards or a style guide for Python programs?
102105
----------------------------------------------------------------

Doc/faq/windows.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,8 @@ offender.
140140
How do I make an executable from a Python script?
141141
-------------------------------------------------
142142

143-
See `cx_Freeze <https://cx-freeze.readthedocs.io/en/latest/>`_ and
144-
`py2exe <http://www.py2exe.org/>`_, both are distutils extensions
145-
that allow you to create console and GUI executables from Python code.
143+
See :ref:`faq-create-standalone-binary` for a list of tools that can be used to
144+
make executables.
146145

147146

148147
Is a ``*.pyd`` file the same as a DLL?

0 commit comments

Comments
 (0)