This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author tarek
Recipients loewis, tarek
Date 2008-04-06.14:41:29
SpamBayes Score 0.009899104
Marked as misclassified No
Message-id <1207492891.04.0.64514927588.issue2562@psf.upfronthosting.co.za>
In-reply-to
Content
oh, hold one, it is more complicated in fact :)

setuptools calls DistributionMetadata.dist.write_pkg_file()
method to write the .egg-info file.

This method make the assertion that the metadata fields are string
so it is not setuptools fault.

This code fail the same way:

dist = Distribution(attrs={'author': u'Mister Café'})
dist.metadata.write_pkg_file(file)

 
So I guess the patch needs to be done in
distutils.dist.DistributionMetadata, so it checks upon
the type of field before it runs:

file.write('Author: %s\n' % self.get_contact() ) 

That what I meant when I said that distutils should
decide wheter it works with unicode or str for this fields.

I can re-write a new patch if you agree on this
History
Date User Action Args
2008-04-06 14:41:31tareksetspambayes_score: 0.0098991 -> 0.009899104
recipients: + tarek, loewis
2008-04-06 14:41:31tareksetspambayes_score: 0.0098991 -> 0.0098991
messageid: <1207492891.04.0.64514927588.issue2562@psf.upfronthosting.co.za>
2008-04-06 14:41:30tareklinkissue2562 messages
2008-04-06 14:41:29tarekcreate