Re: unicode in setup.py file causing RC bug

2007-05-08 Thread Brian Sutherland
On Mon, May 07, 2007 at 09:27:18PM -0400, Scott Kitterman wrote:
> On Monday 07 May 2007 20:43, Kevin Coyner wrote:
> Or 3.  Patch setup.py to expect it.  I believe if you add:
> 
> # -*- encoding: utf-8 -*-
> 
> to the file before the unicode characters are encountered the first time, 
> that 
> should solve your problem.  I didn't look at your package, but that worked 
> for me before for a similar issue.

I believe it needs to be on either the first or second line:

http://docs.python.org/ref/encodings.html

-- 
Brian Sutherland


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: unicode in setup.py file causing RC bug

2007-05-08 Thread Kevin Coyner


On Tue, May 08, 2007 at 09:42:00AM +0200, Brian Sutherland wrote..

> On Mon, May 07, 2007 at 09:27:18PM -0400, Scott Kitterman wrote:
> > On Monday 07 May 2007 20:43, Kevin Coyner wrote:
> > Or 3.  Patch setup.py to expect it.  I believe if you add:
> >
> > # -*- encoding: utf-8 -*-
> >
> > to the file before the unicode characters are encountered the
> > first time, that should solve your problem.  I didn't look at
> > your package, but that worked for me before for a similar issue.
>
> I believe it needs to be on either the first or second line:
>
> http://docs.python.org/ref/encodings.html

Thanks for the responses, but that line was already present in
my setup.py when Lucas generated the FTBFS bug. The first two lines
were:

#!/usr/bin/env python
# -*- coding: UTF-8 -*-

Is this not an issue with any other python package? Still thinking
of reassigning this bug ...

Thanks,
Kevin

-- 
Kevin Coyner  GnuPG key: 1024D/8CE11941


signature.asc
Description: Digital signature


Re: unicode in setup.py file causing RC bug

2007-05-08 Thread Josselin Mouette
Le mardi 08 mai 2007 à 05:57 -0400, Kevin Coyner a écrit :
> Is this not an issue with any other python package? Still thinking
> of reassigning this bug ...

It looks like an issue in distutils indeed. The file is opened in ASCII
mode, which doesn't allow for writing Unicode text inside.

You should reassign the bug to python.
-- 
 .''`.
: :' :  We are debian.org. Lower your prices, surrender your code.
`. `'   We will add your hardware and software distinctiveness to
  `-our own. Resistance is futile.


signature.asc
Description: Ceci est une partie de message	numériquement signée


Re: unicode in setup.py file causing RC bug

2007-05-08 Thread Brian Sutherland
On Tue, May 08, 2007 at 05:57:19AM -0400, Kevin Coyner wrote:
> #!/usr/bin/env python
> # -*- coding: UTF-8 -*-
> 
> Is this not an issue with any other python package? Still thinking
> of reassigning this bug ...

Looking much closer, it seems that this is indeed not the fault of your
package, but the bug still breaks your package.

I didn't spend enough time tracing the code to see whether it was
disutils or setuptools at fault.

-- 
Brian Sutherland


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]