At 10:06 AM 10/8/2007 +0300, Lauri Hallila wrote:
On 10/8/07, Lauri Hallila <mailto:laurihallila@gmail.comlaurihallila@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.