Don't write bytecode on MacOS

MacOS packages are signed and checked on each run.  Since Python lives
inside the package, adding byte code will break the package signature
This commit is contained in:
Seth Hillbrand 2022-03-10 11:17:24 -08:00
parent f218da6ea5
commit 5881471a52
1 changed files with 4 additions and 0 deletions

View File

@ -156,6 +156,10 @@ bool SCRIPTING::scriptingSetup()
#endif
#elif defined( __WXMAC__ )
// Prevent Mac builds from generating JIT versions as this will break
// the package signing
wxSetEnv( "PYTHONDONTWRITEBYTECODE", "1" );
// Add default paths to PYTHONPATH
wxString pypath;