File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -66,6 +66,8 @@ Static type checkers such as `Mypy <http://mypy-lang.org/>`_,
6666source code.
6767
6868
69+ .. _faq-create-standalone-binary :
70+
6971How 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
8991then compiles the generated C code and links it with the rest of the Python
9092interpreter 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
101104Are there coding standards or a style guide for Python programs?
102105----------------------------------------------------------------
Original file line number Diff line number Diff line change @@ -140,9 +140,8 @@ offender.
140140How 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
148147Is a ``*.pyd `` file the same as a DLL?
You can’t perform that action at this time.
0 commit comments