Skip to content

bpo-30757 pyinstaller added to docs, py2exe ref updated #1158

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions Doc/faq/programming.rst
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,7 @@ then compiles the generated C code and links it with the rest of the Python
interpreter to form a self-contained binary which acts exactly like your script.

Obviously, freeze requires a C compiler. There are several other utilities
which don't. One is Thomas Heller's py2exe (Windows only) at

http://www.py2exe.org/

Another tool is Anthony Tuininga's `cx_Freeze <http://cx-freeze.sourceforge.net/>`_.
which don't. Refer to Doc/faq/windows.rst.


Are there coding standards or a style guide for Python programs?
Expand Down
11 changes: 6 additions & 5 deletions Doc/faq/windows.rst
Original file line number Diff line number Diff line change
Expand Up @@ -170,11 +170,12 @@ offender.
How do I make an executable from a Python script?
-------------------------------------------------

See http://cx-freeze.sourceforge.net/ for a distutils extension that allows you
to create console and GUI executables from Python code.
`py2exe <http://www.py2exe.org/>`_, the most popular extension for building
Python 2.x-based executables, does not yet support Python 3 but a version that
does is in development.
The following 2 packages cx_Freeze and PyInstaller allow
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I liked Brian's suggested wording more:

The following packages can help with the creation of console and GUI executables:

the creation of cross-platform stand-alone console and GUI executables:
* http://cx-freeze.sourceforge.net/
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

`cx_Freeze <http://cx-freeze.sourceforge.net/>`_

* http://www.pyinstaller.org/
Copy link
Member

@berkerpeksag berkerpeksag Jul 22, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PyInstaller can run on non-Windows platforms too. I think that the best we could do

  • Move the content of this section to end of the "How can I create a stand-alone binary from a Python script?" section in Doc/faq/programming.rst

  • In Doc/faq/programming.rst, change lines 75 and 76 to

    .. _faq-create-standalone-binary:
    
    How can I create a stand-alone binary from a Python script?
    -----------------------------------------------------------
  • Remove

    Additionally, http://www.py2exe.org/ exclusively supports Windows
    executables.

    and add py2exe to the list:

    The following packages can help with the creation of console and GUI
    executables:
    
    * `cx_Freeze <http://cx-freeze.sourceforge.net/>`_ (Cross-platform)
    * `PyInstaller <http://www.pyinstaller.org/>`_ (Cross-platform)
    * `py2exe <http://www.py2exe.org/>`_ (Windows only)
  • Then make the "How do I make an executable from a Python script?" section in this file a pointer to the "How can I create a stand-alone binary from a Python script?" section in Doc/faq/programming.rst:

    How do I make an executable from a Python script?
    -------------------------------------------------
    
    See :ref:`faq-create-standalone-binary` for a list of tools that can be
    used to make executables.


Additionally, http://www.py2exe.org/ exclusively supports Windows executables.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

`py2exe <http://www.py2exe.org/>`_



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