[Distutils] [buildout] infinite loop when specifying setuptools version on mac

Chris Withers chris at simplistix.co.uk
Sun Jan 20 21:15:33 CET 2013


On 20/01/2013 16:56, Jim Fulton wrote:
> On Sat, Jan 19, 2013 at 6:11 PM, Chris Withers <chris at simplistix.co.uk> wrote:
> ...
>
>> Even worse, doing so causes an infinite loop of restarts on Mac OS X, as a
>> result of the setuptools that ships with the OS versions of python:
>>
>> http://jenkins.simplistix.co.uk/job/testfixtures-buildout/168/PYTHON=2.7,label=mac/console
>
> I just tried to reproduce this and couldn't.

See the attached .tgz, here's what I did on a mac min running 10.7.4:

MiniMe:~ chris$ cd /tmp
MiniMe:tmp chris$ tar xzf buildout_bug.tgz
MiniMe:tmp chris$ cd buildout_bug
MiniMe:buildout_bug chris$ python2.7 bootstrap.py
Creating directory '/private/tmp/buildout_bug/eggs'.
Getting distribution for 'setuptools==0.6c11'.
Got setuptools 0.6c11.
Generated script '/private/tmp/buildout_bug/bin/buildout'.
MiniMe:buildout_bug chris$ bin/buildout
Upgraded:
   setuptools version 0.6c11;
restarting.
Upgraded:
   setuptools version 0.6c11;
restarting.
Upgraded:
   setuptools version 0.6c11;
restarting.
Upgraded:
   setuptools version 0.6c11;
restarting.
Upgraded:
   setuptools version 0.6c11;
restarting.
^CTraceback (most recent call last):
   File "bin/buildout", line 17, in <module>
     import zc.buildout.buildout
   File 
"/private/tmp/buildout_bug/eggs/zc.buildout-1.7.0-py2.7.egg/zc/buildout/buildout.py", 
line 40, in <module>
     import zc.buildout.download
   File 
"/private/tmp/buildout_bug/eggs/zc.buildout-1.7.0-py2.7.egg/zc/buildout/download.py", 
line 20, in <module>
     from zc.buildout.easy_install import realpath
   File 
"/private/tmp/buildout_bug/eggs/zc.buildout-1.7.0-py2.7.egg/zc/buildout/easy_install.py", 
line 31, in <module>
     import setuptools.package_index
   File 
"/Library/Python/2.7/site-packages/setuptools-0.6c12dev_r88846-py2.7.egg/setuptools/package_index.py", 
line 2, in <module>
Traceback (most recent call last):
   File "bin/buildout", line 20, in <module>
     sys.exit(zc.buildout.buildout.main())
   File 
"/private/tmp/buildout_bug/eggs/zc.buildout-1.7.0-py2.7.egg/zc/buildout/buildout.py", 
line 1866, in main
   File 
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib2.py", 
line 94, in <module>
Traceback (most recent call last):
   File "bin/buildout", line 20, in <module>
     sys.exit(zc.buildout.buildout.main())
   File 
"/private/tmp/buildout_bug/eggs/zc.buildout-1.7.0-py2.7.egg/zc/buildout/buildout.py", 
line 1866, in main
Traceback (most recent call last):

cheers,

Chris

-- 
Simplistix - Content Management, Batch Processing & Python Consulting
            - http://www.simplistix.co.uk
-------------- next part --------------
A non-text attachment was scrubbed...
Name: buildout_bug.tgz
Type: application/x-compressed
Size: 16727 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20130120/ec1d7380/attachment-0001.bin>


More information about the Distutils-SIG mailing list