From justvanrossum at gmail.com Fri Feb 14 15:46:59 2020 From: justvanrossum at gmail.com (Just van Rossum) Date: Fri, 14 Feb 2020 21:46:59 +0100 Subject: [Pythonmac-SIG] ctypes, codesigning, notarizing, py2app? Message-ID: 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 From justvanrossum at gmail.com Sat Feb 15 02:17:05 2020 From: justvanrossum at gmail.com (Just van Rossum) Date: Sat, 15 Feb 2020 08:17:05 +0100 Subject: [Pythonmac-SIG] ctypes, codesigning, notarizing, py2app? In-Reply-To: References: Message-ID: <6768C363-3A17-4C4A-B7BA-B05D39A8DFA5@gmail.com> 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 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 >