DistUtils and optimized compile

Thomas Heller thomas.heller at ion-tof.com
Mon Jun 25 11:36:58 EDT 2001


[posted and mailed]
"Michael Ströder" <michael at stroeder.com> wrote in message news:3B375869.E417C833 at stroeder.com...
> HI!
>
> I'd like to use DistUtils for a pure Python module package.
> Everything seems to be ok so far but when doing python setup.py
> install only the .pyc byte-code is compiled and installed. I'm
> missing the .pyo files with the optimized compiled byte-code.
>
> Any help's appreciated.

Use the -O1 or -O2 command line flag:
python install -O2

Thomas





More information about the Python-list mailing list