[issue11254] distutils doesn't byte-compile .py files to __pycache__ during installation

Éric Araujo report at bugs.python.org
Sun Feb 20 13:47:23 CET 2011


Éric Araujo <merwok at netwok.org> added the comment:

Patch looks good.  Regarding the problem with 2to3 and -O, maybe you can run 2to3 manually, copy the setup.py and run python3.2 -0.  disutils.util.byte_compile is not tested, so this patch requires at least careful manual testing, and if possible a unit test.

In distutils2, it may be possible to replace this function with a compileall call.

----------
components: +Distutils2
nosy: +alexis, barry
stage:  -> patch review
versions: +3rd party, Python 3.3

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11254>
_______________________________________


More information about the Python-bugs-list mailing list