Using compileall to create -OO type .pyo files

python at bdurham.com python at bdurham.com
Fri Feb 19 00:02:44 EST 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
script.
Thanks,
Malcolm
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20100219/229ac964/attachment.html>


More information about the Python-list mailing list