Using compileall to create -OO type .pyo files

python at python at
Fri Feb 19 06:02:44 CET 2010

I've read the documentation on compileall and tried using this
module directly.

Nowhere can I find how to specify to compileall that it should
create .pyo vs. .pyc files.

Goal: I would like to use the compileall.compile_dir() method to
generate -OO type .pyo files as part of a larger Python build
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Python-list mailing list