[issue11638] python setup.py sdist crashes if version is unicode

2011-11-11 Thread Jason R. Coombs
Jason R. Coombs added the comment: First, the term 'gztar' doesn't appear in this ticket, and since the issue only applies when sdist --format gztar, I mention that here. Also, issue8396 suggests encoding using sys.getfilesystemencoding(). -- nosy: +jason.coombs _

[issue11638] python setup.py sdist crashes if version is unicode

2011-10-31 Thread Éric Araujo
Éric Araujo added the comment: > Here's a test for the bug. Thanks! Some comments are strange, but the patch is a good start. > One way to fix the symptom (maybe not the correct way) would be to edit > tarfile._Stream._init_write_gz I’d rather change distutils, not tarfile. I think the best p

[issue11638] python setup.py sdist crashes if version is unicode

2011-10-29 Thread David Barnett
David Barnett added the comment: One way to fix the symptom (maybe not the correct way) would be to edit tarfile._Stream._init_write_gz and change the line that reads self.__write(self.name + NUL) to something like self.__write(self.name.encode('utf-8') + NUL) tarfile is building up an enc

[issue11638] python setup.py sdist crashes if version is unicode

2011-10-29 Thread David Barnett
David Barnett added the comment: Here's a test for the bug. -- keywords: +patch Added file: http://bugs.python.org/file23548/test_unicode_sdist.patch ___ Python tracker ___

[issue11638] python setup.py sdist crashes if version is unicode

2011-10-18 Thread Éric Araujo
Éric Araujo added the comment: David: I don’t think packaging and pysetup generate-setup have anything to do with this bug. You can create a setup.py file manually and see the error with distutils in 2.7. As I said before, I agree this is a bug. I’m working on many things right now, so if

[issue11638] python setup.py sdist crashes if version is unicode

2011-10-17 Thread David Barnett
David Barnett added the comment: I'm getting this exact error when I run "python setup.py sdist", no matter what I do. Even if I just create a new project, type "1.0.0" for version, type "a" in all the other fields, and say "no" to every question; then run "pysetup generate-setup" and "python

[issue11638] python setup.py sdist crashes if version is unicode

2011-10-17 Thread Éric Araujo
Éric Araujo added the comment: Jens: > Don't know it this is related to the usage of: from __future__ import > unicode_literals ? Yes. This semi-magic import will turn your string literals into unicode literals, hence your name, version, etc. will be unicode objects. It’s the same thing as w

[issue11638] python setup.py sdist crashes if version is unicode

2011-10-17 Thread Éric Araujo
Éric Araujo added the comment: I can’t reproduce with pysetup or distutils 3.x. -- components: -Distutils2 title: pysetup un sdist crashes with weird trace if version is unicode by accident -> python setup.py sdist crashes if version is unicode versions: -3rd party, Python 3.2, Pytho