Re: [Distutils] distribute-0.6.35 fails on python 3.3?

2013-03-06 Thread Daniel Holth
On Wed, Mar 6, 2013 at 7:24 AM, Lennart Regebro  wrote:
> On Tue, Feb 26, 2013 at 7:21 AM, Chris Withers  wrote:
>> Hi All,
>>
>> Can anyone else reproduce this?
>
> Essentially pip can not upgrade distribute or setuptools on Python 3.
>
> This is annoying, and it seems the easiest way to solve it is to stop
> using 2to3 for distribute.
> This is a massive change though, and since the test coverage is dismal
> its' going to create loads of bugs. But perhaps we simply need to
> accept that.

It has always been problematic to upgrade distribute (a pip
dependency) with pip. Under certain circumstances pip can uninstall
distribute before trying to install it again, which fails because at
that point distribute isn't installed. On Windows and on Python 3 the
issue is worse due to 2to3 and file locking issues.

Virtualenv is a more reliable way to upgrade distribute.
___
Distutils-SIG maillist  -  Distutils-SIG@python.org
http://mail.python.org/mailman/listinfo/distutils-sig


Re: [Distutils] distribute-0.6.35 fails on python 3.3?

2013-03-06 Thread Lennart Regebro
On Tue, Feb 26, 2013 at 7:21 AM, Chris Withers  wrote:
> Hi All,
>
> Can anyone else reproduce this?

Essentially pip can not upgrade distribute or setuptools on Python 3.

This is annoying, and it seems the easiest way to solve it is to stop
using 2to3 for distribute.
This is a massive change though, and since the test coverage is dismal
its' going to create loads of bugs. But perhaps we simply need to
accept that.

//Lennart
___
Distutils-SIG maillist  -  Distutils-SIG@python.org
http://mail.python.org/mailman/listinfo/distutils-sig


Re: [Distutils] distribute-0.6.35 fails on python 3.3?

2013-02-26 Thread anatoly techtonik
On Tue, Feb 26, 2013 at 9:21 AM, Chris Withers wrote:

>   File "./setuptools/dist.py", line 103
>
> except ValueError, e:
>
>  ^
>
> SyntaxError: invalid syntax
>
> Can other people reproduce this? When was that Python 3 incompatible
> except clause introduced?
>

hg blame setuptools/dist.py

-- 
anatoly t.
___
Distutils-SIG maillist  -  Distutils-SIG@python.org
http://mail.python.org/mailman/listinfo/distutils-sig


[Distutils] distribute-0.6.35 fails on python 3.3?

2013-02-26 Thread Chris Withers

Hi All,

Can anyone else reproduce this?

I have a Python 3.3 virtualenv and I wanted to upgrade one of the 
packages as follows:


$ bin/pip install -U manuel
Requirement already up-to-date: manuel in ./lib/python3.3/site-packages
Downloading/unpacking distribute from 
http://pypi.python.org/packages/source/d/distribute/distribute-0.6.35.tar.gz#md5=e55298c7e3a233df1a47a4881a0c9800 
(from manuel)

  Downloading distribute-0.6.35.tar.gz (644kB): 644kB downloaded
  Running setup.py egg_info for package distribute
Traceback (most recent call last):
  File "", line 3, in 
  File "./setuptools/__init__.py", line 2, in 
from setuptools.extension import Extension, Library
  File "./setuptools/extension.py", line 5, in 
from setuptools.dist import _get_unpatched
  File "./setuptools/dist.py", line 103
except ValueError, e:
 ^
SyntaxError: invalid syntax
Complete output from command python setup.py egg_info:
Traceback (most recent call last):

  File "", line 3, in 

  File "./setuptools/__init__.py", line 2, in 

from setuptools.extension import Extension, Library

  File "./setuptools/extension.py", line 5, in 

from setuptools.dist import _get_unpatched

  File "./setuptools/dist.py", line 103

except ValueError, e:

 ^

SyntaxError: invalid syntax

Can other people reproduce this? When was that Python 3 incompatible 
except clause introduced?


cheers.

Chris

--
Simplistix - Content Management, Batch Processing & Python Consulting
- http://www.simplistix.co.uk
___
Distutils-SIG maillist  -  Distutils-SIG@python.org
http://mail.python.org/mailman/listinfo/distutils-sig