cpython icon indicating copy to clipboard operation
cpython copied to clipboard

Consider adding a Mac Catalyst build option

Open ronaldoussoren opened this issue 3 years ago • 1 comments

Feature or enhancement

Support the "Mac Catalyst" flavour of macOS binaries on recentish version of macOS

Pitch

MacOS currently has two ways to build "native" applications:

  1. The macOS binaries used from macOS 10.0, for ease of reference I'll call these "Cocoa"
  2. MacCatalyst binaries that link to (a subset) of the frameworks used on iOS, but recompiled for macOS

The latter have access to some interesting system APIs that former cannot use, such as the HomeKit framework. The current builds are "Cocoa" builds.

Previous discussion

There is no previous discussion of Python forums. This issue was triggered by an issue on PyObjC's tracker https://github.com/ronaldoussoren/pyobjc/issues/501.

ronaldoussoren avatar Oct 15 '22 20:10 ronaldoussoren

I have no short-term plans to work on this, and haven't assessed the impact of this on the codebase

Doing this seriously likely requires some coordination with the PyPA and PyPI maintainers as this would effectively be a new platform: I expect that a Mac Catalyst build cannot use C-extensions (and hence binary wheels) for the current "Cocoa" variant.

That said, I have done no research on this beyond noticing that "Cocoa" binaries cannot load "Catalyst" libraries/frameworks, and that this is an intentional limitation (there is some support for loading "Cocoa" into "Catalyst" though).

ronaldoussoren avatar Oct 15 '22 20:10 ronaldoussoren