[Distutils] No support for .pyo files

M.-A. Lemburg mal@lemburg.com
Mon May 14 10:55:22 2001


Greg Kochanski wrote:
> 
> Python has a -O flag that turns on some compiler
> optimizations.  Python then looks for (and produces)
> .pyo files instead of .pyc files.
> 
> Distutils doesn't seem to provide any support for this.
> What can be done?

Distutils does have support to compile .pyo files. You
just have to specify -O or -O2 as option to the build_py
command.

-- 
Marc-Andre Lemburg
______________________________________________________________________
Company & Consulting:                           http://www.egenix.com/
Python Software:                        http://www.lemburg.com/python/