Message136084
With issue 10419 fixed, I've run into the next distutils unicode bug: The command "install_egg_info" doesn't specify an encoding when opening the ".egg-info" file for writing. Depending on the locale, this may result in something like the following:
$ python setup.py install
[...]
Traceback (most recent call last):
File "setup.py", line 67, in <module>
main()
File "setup.py", line 62, in main
cmdclass={"test":TestCommand},
File "/home/hagen/src/python/Lib/distutils/core.py", line 149, in setup
dist.run_commands()
File "/home/hagen/src/python/Lib/distutils/dist.py", line 919, in run_commands
self.run_command(cmd)
File "/home/hagen/src/python/Lib/distutils/dist.py", line 938, in run_command
cmd_obj.run()
File "/home/hagen/src/python/Lib/distutils/command/install.py", line 583, in run
self.run_command(cmd_name)
File "/home/hagen/src/python/Lib/distutils/cmd.py", line 315, in run_command
self.distribution.run_command(command)
File "/home/hagen/src/python/Lib/distutils/dist.py", line 938, in run_command
cmd_obj.run()
File "/home/hagen/src/python/Lib/distutils/command/install_egg_info.py", line 44, in run
self.distribution.metadata.write_pkg_file(f)
File "/home/hagen/src/python/Lib/distutils/dist.py", line 1033, in write_pkg_file
file.write('Author: %s\n' % self.get_contact() )
UnicodeEncodeError: 'ascii' codec can't encode character '\xfc' in position 15: ordinal not in range(128)
I guess some encoding (UTF-8?) should be specified in the "run" method of "install_egg_info". |
|
Date |
User |
Action |
Args |
2011-05-16 12:21:36 | hagen | set | recipients:
+ hagen, tarek, eric.araujo |
2011-05-16 12:21:35 | hagen | set | messageid: <1305548495.94.0.944889224247.issue12087@psf.upfronthosting.co.za> |
2011-05-16 12:21:35 | hagen | link | issue12087 messages |
2011-05-16 12:21:34 | hagen | create | |
|