This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author zart
Recipients zart
Date 2012-10-27.18:42:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1351363368.32.0.193110558396.issue16340@psf.upfronthosting.co.za>
In-reply-to
Content
When installing python 3.3 under windows and checking "Compile .py files to byte code after installation" Lib/venv/scripts/nt/pydoc.py gets precompiled as well. This causes venv module to abort with "Error: 'utf-8' codec can't decode byte 0x9e in position 0: invalid start byte" while copying scripts from Lib/venv/scripts/nt since only .exe files are copied verbatim, and rest are treated as utf-8 text: http://hg.python.org/cpython/file/b20e473157b8/Lib/venv/__init__.py#l314

The solution is to add another exception to compileargs at Tools/msi/msi.py: http://hg.python.org/cpython/file/b20e473157b8/Tools/msi/msi.py#l419

This issue doesn't affect non-windows systems, since Lib/venv/scripts/posix doesn't contain .py files.
History
Date User Action Args
2012-10-27 18:42:48zartsetrecipients: + zart
2012-10-27 18:42:48zartsetmessageid: <1351363368.32.0.193110558396.issue16340@psf.upfronthosting.co.za>
2012-10-27 18:42:48zartlinkissue16340 messages
2012-10-27 18:42:47zartcreate