[ python-Bugs-1076233 ] distutils.core.setup() with unicode
arguments broken
SourceForge.net
noreply at sourceforge.net
Tue Nov 30 21:13:26 CET 2004
Bugs item #1076233, was opened at 2004-11-30 20:53
Message generated for change (Comment added) made by theller
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1076233&group_id=5470
Category: Distutils
Group: Python 2.4
Status: Open
Resolution: None
Priority: 5
Submitted By: Walter Dörwald (doerwalter)
>Assigned to: A.M. Kuchling (akuchling)
Summary: distutils.core.setup() with unicode arguments broken
Initial Comment:
When using unicode arguments for distutils.core.setup()
running setup.py breaks with the following exception:
Traceback (most recent call last):
...
\Lib\distutils\command\sdist.py", line 430, in
make_release_tree
self.distribution.metadata.write_pkg_info(base_dir)
File "C:\Programme\Python24\Lib\distutils\dist.py", line
1047, in write_pkg_info
pkg_info.write('Author: %s\n' % self.get_contact() )
UnicodeEncodeError: 'ascii' codec can't encode
character u'\xf6' in position 16: ordinal not in range(128)
Changing the system default encoding to iso-8859-1
works around this problem.
----------------------------------------------------------------------
>Comment By: Thomas Heller (theller)
Date: 2004-11-30 21:13
Message:
Logged In: YES
user_id=11105
I'm unusure about the allowed encoding in PKG-INFO, and I
cannot find anything in PEP 241. Andrew, since you are
listed as the author, can you comment?
bdist_wininst does accept unicode strings, and that may be
the reason that walter expects this to work for sdist also...
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1076233&group_id=5470
More information about the Python-bugs-list
mailing list