[issue11254] distutils doesn't byte-compile .py files to __pycache__ during installation
Dave Malcolm
report at bugs.python.org
Fri Jul 15 20:01:24 CEST 2011
Dave Malcolm <dmalcolm at redhat.com> added the comment:
FWIW, I've filed a bug about this issue for Fedora 15's python3 package here: https://bugzilla.redhat.com/show_bug.cgi?id=722578
Looks like this has led to an extra .pyc in the old location for every Python 3 .py file in Fedora 15's various python3-* rpm packages (as generated by distutils).
rpm's post-processing has been generating .pyc files in the (correct) __pycache__ location (via rpmbuild's brp-python-bytecompile script, which uses "compileall").
For examples, see that Fedora bug report; so far it's affected every built rpm I've looked at.
I believe the impact of the extra .pyc files is merely wasted disk space within our rpm-packaged Python 3.2 stack.
I'm thinking of applying the patch to our downstream python3.src.rpm
----------
nosy: +dmalcolm
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11254>
_______________________________________
More information about the Python-bugs-list
mailing list