Dont import ctypes unless type checking

ctypes in Python 3.14 is broken on Intel macs. It uses libffi which is
broken on Intel macs without extra security entitlements. At least
com.apple.security.cs.allow-unsigned-executable-memory and possibly
com.apple.security.cs.disable-executable-page-protection

Rather than add these entitlements, we simply do not import ctypes as it
is not actually used on macs anyway.

Fixes #9643
This commit is contained in:
Kovid Goyal
2026-03-12 09:46:22 +05:30
parent c2447abd30
commit b9d7a661ce
2 changed files with 3 additions and 1 deletions

View File

@@ -174,6 +174,8 @@ Detailed list of changes
- Fix a regression that broke accept anyway shortcut in the paste confirmation dialog (:pull:`9640`)
- Fix kitty hanging on startup on Intel macs (:iss:`9643`)
0.46.0 [2026-03-11]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~