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.
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...
Logged In: YES user_id=11375 Encoding was never considered. PEP 314 is an updated version of PEP 241; it should specify an encoding (probably UTF-8 is the most reasonable choice).