bbfreeze icon indicating copy to clipboard operation
bbfreeze copied to clipboard

Option to generate and distribute .PYO files

Open andreydani opened this issue 11 years ago • 2 comments

Ideally we should be able to distribute optimized code, a.k.a. PYO files instead of PYC files.

andreydani avatar May 30 '14 19:05 andreydani

After running bbfreeze with "python -OO ...", and comparing the resulting files, it seemed to me the code is generated with optimizations, as I wanted, but the resulting files keep PYC extension. Is that the case?

andreydani avatar May 30 '14 21:05 andreydani

yes that might be true. You may also try to set the environment variable PYTHONOPTIMIZE.

schmir avatar May 30 '14 21:05 schmir