[Distutils] setuptools 8 changes are great, but ...

Maurits van Rees m.van.rees at zestsoftware.nl
Mon Dec 15 23:50:17 CET 2014


Jim Fulton schreef op 15-12-14 19:51:
> On Mon, Dec 15, 2014 at 1:45 PM, Donald Stufft <donald at stufft.io> wrote:
>>
>>> On Dec 15, 2014, at 1:27 PM, Jim Fulton <jim at zope.com> wrote:
>>>
>>> I think the changes in version management in setuptools 8 are a great
>>> step forward,
>>> but I think the transition is going to hurt a lot.
>>>
>>> For buildout, I'm thinking of of releasing 2.3.1 that reverts the
>>> changes in 2.3 and
>>> adds a requirement for setuptools <8 to give more time to respond to
>>> these  changes.

Possibly.
Or maybe a zc.buildout 2.2.x that requires setuptools<8 or a 
bootstrap.py that defaults to zc.buildout 2.2.5 and setuptools 7.0. 
(Just some options, I haven't thought them through.)

>>
>> Is there something I’m not aware that is broken currently? I thought the
>> transition was going pretty smoothly overall considering that a core piece
>> of code inside of setuptools was touched.
>
> The problem is that version numbers and requirements aren't interpreted
> the same way. I think that's going to take some time to sort out.  In
> the mean time,
> I'd like to try to stop the pain.

An example of some pain, although it is only a repeated warning:

$ curl -O https://bootstrap.pypa.io/bootstrap-buildout.py
$ python2.7 bootstrap-buildout.py
Downloading 
https://pypi.python.org/packages/source/s/setuptools/setuptools-8.0.4.zip
Extracting in TMP1
Now working in TMP1/setuptools-8.0.4
Building a Setuptools egg in TMP2
TMP2/setuptools-8.0.4-py2.7.egg
TMP2/setuptools-8.0.4-py2.7.egg/pkg_resources.py:2425: RuntimeWarning: 
'zc.buildout-1.0.0 ()' is being parsed as a legacy, non PEP 440, 
version. You may find odd behavior and sort order. In particular it will 
be sorted as less than 0.0. It is recommend to migrate to PEP 440 
compatible versions.
...
(dozens more warnings, two for every zc.buildout version on PyPI)
...
TMP2/setuptools-8.0.4-py2.7.egg/pkg_resources.py:2425: RuntimeWarning: 
'zc.buildout-2.3.0 ()' is being parsed as a legacy, non PEP 440, 
version. You may find odd behavior and sort order. In particular it will 
be sorted as less than 0.0. It is recommend to migrate to PEP 440 
compatible versions.

I'm not sure if that is setuptools doing funky stuff or zc.buildout 
doing funky stuff.  Probably both.  And probably they both *need* to do 
funky stuff. ;-)

> I think you've been very responsive and that's much appreciated.

+1


-- 
Maurits van Rees: http://maurits.vanrees.org/
Zest Software: http://zestsoftware.nl



More information about the Distutils-SIG mailing list