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
(cherry picked from commit 5881471a52
)
This commit is contained in:
parent
c241032a3b
commit
a2e66f6667
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue