diff --git a/scripting/python_scripting.cpp b/scripting/python_scripting.cpp index e292887ff0..9b74709fc6 100644 --- a/scripting/python_scripting.cpp +++ b/scripting/python_scripting.cpp @@ -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;