Did you know that if you put a .py file outside /usr/lib/pythonX.Y/,
rpmbuild will automatically byte-compile .pyc/.pyo for it?
Using Python 2 by default?
I find this (and especially the details of how it's done) too
surprising, too limited and too hard to configure properly.
Miro and I are drafting a Fedora change to eventually switch to doing
the byte-compilation explicitly instead. Files in /usr/lib/pythonX.Y/
still get compiled automatically, of course.
You can read the draft here:
python-devel mailing list -- email@example.com
To unsubscribe send an email to python-devel-le...@lists.fedoraproject.org