Closed hasii2011 closed 2 years ago
Setting PYTHONOPTIMIZE in .plist has no effect. It is not set.
Specifying --optimize=1 or -O1
on the py2app command line causes this error:
https://github.com/ronaldoussoren/py2app/pull/410
I'll delay this for a while
py2app 0.28 fixes this for me thanks @MAKOMO and @ronaldoussoren
Now, how can you actually disable your assertions? Well, you have two options:
The -O option internally sets debug to False. This change removes the assert statements and any code that you’ve explicitly introduced under a conditional targeting debug. The -OO option does the same as -O and also discards docstrings.