[Distutils] Incompatibility issue with setuptools 0.6c7-py2.4 and workingenv-0.6.5-py2.4

Ian Bicking ianb at colorstudy.com
Mon Oct 8 21:39:21 CEST 2007


Phillip J. Eby wrote:
> At 10:06 AM 10/8/2007 +0300, Lauri Hallila wrote:
>> On 10/8/07, Lauri Hallila 
>> <<mailto:laurihallila at gmail.com>laurihallila at gmail.com> wrote:
>> Hello!
>>
>> I noticed a small problem in setuptools... workingenv (version 
>> 0.6.5-py2.4), in some instances, adds a comment-line "# Duplicating 
>> setuptools' site.py..." into the beginning of site.py (workingenv.py 
>> , line 1214). Problem is that easy_install.py checks if the existing 
>> file site.py starts with "def __boot():", and if it doesn't, it 
>> raises an error.
>>
>> I fixed the problem in my own environment by skipping empty and 
>> comment-lines in easy_install.py (fixed file attached).
>>
>> I just thought to inform you of the problem... feel free to take my 
>> fix into setuptools if you like my way to fix the problem.
> 
> Unless you're on a Mac, you should probably upgrade from workingenv 
> to virtualenv:
> 
>    http://pypi.python.org/pypi/virtualenv/
> 
> Virtualenv does not patch setuptools, and so can't have this problem.

Yeah, it's this problem in particular that became basically 
insurmountable.  Which seems odd -- it doesn't look like a hard problem. 
  But it was very hard.

It will also work on a Mac if you use a custom-built Python.

-- 
Ian Bicking : ianb at colorstudy.com : http://blog.ianbicking.org
             : Write code, do good : http://topp.openplans.org/careers


More information about the Distutils-SIG mailing list