@@ -18,6 +18,39 @@ Shared memory configuration
1818On MacOS you need to increase the amount of shared memory that is available to programs. The default (4MB) is by far not enough for anything we do.
1919Note: it appears that Catalina seem to allow more shared memory than what is indicated in the documentation, so no action seem to be needed.
2020
21+ Python permissions
22+ ---------------------------
23+
24+ On MacOS, even after having allowed your firewall to receive incoming connections from Python applications while running catkit2,
25+ it might keep popping up windows asking you to accept incoming connections every single time you start a server or service.
26+ To prevent this, you can create a self-signed certificate in your keychain. The instructions for that are below,
27+ found on: https://stackoverflow.com/a/59186900/10112569
28+
29+ ```
30+ With the OS X firewall enabled, you can remove the "Do you want the application "python" to accept incoming network connections?" message.
31+
32+ Create a self-signed certificate.
33+
34+ Open Keychain Access. Applications > Utilities > Keychain Access.
35+ Keychain Access menu > Certificate Assistant > Create a Certificate...
36+ Enter a Name like "My Certificate".
37+ Select Identity Type: Self Signed Root
38+ Select Certificate Type: Code Signing
39+ Check the Let me override defaults box
40+ Click Continue
41+ Enter a unique Serial Number
42+ Enter 7300 for Validity Period.
43+ Click Continue
44+ Click Continue for the rest of the dialogs
45+ Now sign your application
46+
47+ codesign -s "My Certificate" -f $(which python)
48+
49+ In the dialog that appears, click "Allow".
50+
51+ Note that when using a virtual environment, you need to activate the virtual environment before running this command.
52+ ```
53+
2154Installation
2255------------
2356
0 commit comments