[issue12386] packaging fails in install_distinfo when writing RESOURCES

Éric Araujo report at bugs.python.org
Wed Aug 31 17:52:42 CEST 2011


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

> I only meant that when writing data resources, one might reasonably
> use 'wb', but when writing scripts, which are text, 'w' is more
> appropriate.

I don’t see why.  All text is bytes, so we can do all I/O in bytes when writing resources and avoid special-casing.

> BTW, IIRC I have fixed it in the pythonv branch.
> https://bitbucket.org/vinay.sajip/pythonv

A link to a specific changeset or file would be great.

[trevor]
> i see the same behavior - the error occurs leaving an empty RESOURCES file

Do you see that when running a test, a command or some other code?

----------

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


More information about the Python-bugs-list mailing list