Skip to content

Commit

Permalink
change condition
Browse files Browse the repository at this point in the history
  • Loading branch information
cmacdonald authored Nov 16, 2023
1 parent 080e81e commit 33069b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def check_python_signing():
['/usr/bin/codesign', '--display', '--verbose=4', '--xml', '--entitlements', '-',
sys.executable]
)
assert "com.apple.security.cs.disable-executable-page-protection" not in 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.")
except:
Expand Down

0 comments on commit 33069b4

Please sign in to comment.