On Wed, Mar 28, 2012 at 12:41 PM, Andrea Crotti
<[email protected]>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.
_______________________________________________
Distutils-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/distutils-sig

Reply via email to