[Distutils] non-ascii characters in long description

Tarek Ziadé ziade.tarek at gmail.com
Thu Sep 17 15:00:33 CEST 2009

On Thu, Sep 17, 2009 at 2:46 PM, Reinout van Rees <reinout at vanrees.org> wrote:
> I have non-ascii characters in my long description (as I just fixed a bug in
> my package that had to do with non-ascii characters).  I did all the right
> things like opening my changelog and readme with "codecs.open(...,
> encoding='utf-8')" and so.  But I ran into the following setuptools problem:
> When calling "python setup.py --long-description", setuptools effectively does
> a "print long_description", which works with a utf8 string, but fails with a
> unicode string.
> When uploading to pypi, setuptools calls unicode() on my long description,
> which fails with a utf8 string and works with a unicode string.

Mmm, I've fixed that problem in Distutils code in 2.6+  IIRC

Are you sure this code is in setuptools and not in distutils ? can you
provide a traceback ?


Tarek Ziadé | http://ziade.org | オープンソースはすごい!

More information about the Distutils-SIG mailing list