[Pythonmac-SIG] buildapp.py --standalone with -O
Just van Rossum
just at letterror.com
Wed Nov 12 15:23:41 EST 2003
Bob Swerdlow wrote:
> So, here are my questions:
> 1. Is a standalone application that is build optimized launched with
> the "-O" optimization flag on?
> 2. If not, is there a way to get it to launch with that flag on?
> 3. If so, would the site.pyo file be properly read or would we still
> need the site.pyc file?
> Bottom line: is there some work-around for this hack of building
> twice and saving the site.pyc file?
I think you need to hack the bootstrap script by adding
after this line:
(Feel free to submit a bundlebuilder bug report for this.)
Are you absolutely sure that -O buys you anything worth the trouble?
More information about the Pythonmac-SIG