[Pythonmac-SIG] ctypes, codesigning, notarizing, py2app?

Just van Rossum justvanrossum at gmail.com
Sat Feb 15 02:17:05 EST 2020


I’ve found a solution. Adding the following entitlement during codesigning allows me to use ctypes:

   com.apple.security.cs.disable-executable-page-protection

That is a big relief.

Just

> On 14 Feb 2020, at 21:46, Just van Rossum <justvanrossum at gmail.com> wrote:
> 
> Hello,
> 
> I’m trying to codesign and notarize my application, and thanks to the following thread I’m getting closer:
> 
> https://mail.python.org/pipermail/pythonmac-sig/2018-October/024341.html
> 
> However, I’m stuck there, since my app _does_ require ctypes.
> 
> Is there currently a way to use ctypes in a py2app-built application, and have it codesigned and notarized? I’m afraid the answer may be “no”, if I read the thread correctly...
> 
> Thanks for any clues,
> 
> Just
> 



More information about the Pythonmac-SIG mailing list