[Distutils] bdist_egg and pyo files
pje at telecommunity.com
Wed Mar 28 21:56:24 CEST 2012
On Wed, Mar 28, 2012 at 12:41 PM, Andrea Crotti
<andrea.crotti.0 at gmail.com>wrote:
> I've been asked to ship our eggs as pyo files instead of pyc, but
> 1. I'm not 100% sure it's a good idea, what issues can this raise?
> 2. I can't find any option in bdist_egg to actually compile the files
> in optimized mode, is it not there on purpose??
> You have to do "setup.py build_py -O1 bdist_egg" (or -O2 if you prefer).
Doing this will include the .pyo files *in addition* to the .pyc files.
There is currently no way to disable the .pyc files from being included.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Distutils-SIG