Skip to content
Closed
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
19 changes: 19 additions & 0 deletions getting-started/setup-building.rst
Original file line number Diff line number Diff line change
Expand Up @@ -699,6 +699,25 @@ wrap the invocation of the Xcode :program:`xcrun` tool, removing user- and
version-specific paths from the values encoded in the :py:mod:`sysconfig`
module. Copies of these scripts are included in the final build products.


.. note::

The ``--enable-framework`` option installs Python as a macOS Framework.
This changes the install location to
``/Library/Frameworks/Python.framework/Versions/X.Y/`` and integrates
Python with macOS’s native framework system.

Framework builds are required for some GUI libraries (such as ``tkinter`` or
``PyObjC``) and allow Python to be embedded in Cocoa applications via
``NSBundle``.

Without ``--enable-framework``, you still get a working command-line
``python3``, but certain macOS-specific integrations (GUI event loops,
app embedding, etc.) will not work.
Comment on lines +714 to +716
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
Without ``--enable-framework``, you still get a working command-line
``python3``, but certain macOS-specific integrations (GUI event loops,
app embedding, etc.) will not work.
Without ``--enable-framework``, you still get a working command-line
``python3``, but certain macOS-specific integrations (such as GUI event
loops and app embedding) will not work.





Once this build completes, the ``iOS/Frameworks`` folder will contain a
``Python.framework`` that can be used for testing.

Expand Down