title: May I omit .pyo and .pyc files in an RPM?
body: <p>I am bundling a Python application along with its virtenv environment inside an RPM for easier deployment. Is it a sound decision to omit all the <code>.pyo</code> and <code>.pyc</code> files?</p>
  
  <p>What I would do instead is to invoke <code>compileall.py</code> in the post-install action from within the <code>virtenv</code> instance. Does that work, or will this mess up things?</p>
  
  <p>Note: I realize that I could try on one machine, but a.) this wouldn't give me a conclusive answer as to whether this will work on other machines and b.) others may have the same question and I didn't find it answered.</p>