From a1f47aecb6d503f7a383163d9bd6205e50d5f0bc Mon Sep 17 00:00:00 2001 From: Craig Macdonald Date: Thu, 16 Nov 2023 10:26:34 +0000 Subject: [PATCH] debugging signing --- setup.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/setup.py b/setup.py index 7dec86e7..1e43f540 100644 --- a/setup.py +++ b/setup.py @@ -86,6 +86,7 @@ def compile_native_invocation_handler(java): def check_python_signing(): import platform + print("****", sys.platform, platform.processor()) # check for mac if sys.platform != 'darwin': return @@ -97,6 +98,7 @@ def check_python_signing(): ['/usr/bin/codesign', '--display', '--verbose=4', '--xml', '--entitlements', '-', sys.executable] ).decode("utf-8") + print("****", codesign) assert "com.apple.security.cs.disable-executable-page-protection" in codesign, ( ("Python (%s) was not signed with com.apple.security.cs.disable-executable-page-protection entitlement. " % sys.executable) + "You should installed a version of Python that has been codesigned with this entitlement.")