schmir / bbfreeze

UNMAINTAINED
http://pypi.python.org/pypi/bbfreeze/
92 stars 22 forks source link

Option to generate and distribute .PYO files #27

Open andreydani opened 10 years ago

andreydani commented 10 years ago

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

andreydani commented 10 years ago

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?

schmir commented 10 years ago

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