User:Allan/Python Packaging Policy
This page is to collect ideas for a packaging policy to deal with compiled python files (.pyc, .pyo).
Other Distro's Policies
How we should deal with this
AFAIK, the .pyc/.pyo file is architecture independent (at least for now). So I think we should put this line
python setup.py install --root=$pkgdir/ --optimize=1
python setup.py install --root=$pkgdir/
to provide pseudo compile byte-code and the optimized byte-code with the package.