<!--/*SC*/DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"/*EC*/-->
<html><head><title></title><style type="text/css"><!--body{padding:1ex;margin:0px;font-family:sans-serif;font-size:small;}a[href]{color:-moz-hyperlinktext !important;text-decoration:-moz-anchor-decoration;}blockquote{margin:0;border-left:2px solid #144fae;padding-left:1em;}blockquote blockquote{border-color:#006312;}blockquote blockquote blockquote{border-color:#540000;}--></style></head><body><div style="font-family: Arial; font-size: medium;" dir="ltr"><div>I've read the documentation on compileall and tried using this module directly.</div>
<div> </div>
<div>Nowhere can I find how to specify to compileall that it should create .pyo vs. .pyc files.</div>
<div> </div>
<div>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.</div>
<br>
<div>Thanks,</div>
<div>Malcolm</div>
<div> </div></div></body></html>