File tree Expand file tree Collapse file tree 2 files changed +12
-10
lines changed Expand file tree Collapse file tree 2 files changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -66,6 +66,8 @@ Static type checkers such as `Mypy <http://mypy-lang.org/>`_,
66
66
source code.
67
67
68
68
69
+ .. _faq-create-standalone-binary :
70
+
69
71
How can I create a stand-alone binary from a Python script?
70
72
-----------------------------------------------------------
71
73
@@ -89,14 +91,15 @@ only contains those built-in modules which are actually used in the program. It
89
91
then compiles the generated C code and links it with the rest of the Python
90
92
interpreter to form a self-contained binary which acts exactly like your script.
91
93
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:
99
96
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)
100
103
101
104
Are there coding standards or a style guide for Python programs?
102
105
----------------------------------------------------------------
Original file line number Diff line number Diff line change @@ -140,9 +140,8 @@ offender.
140
140
How do I make an executable from a Python script?
141
141
-------------------------------------------------
142
142
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.
146
145
147
146
148
147
Is a ``*.pyd `` file the same as a DLL?
You can’t perform that action at this time.
0 commit comments