Date: Mon, 20 Oct 2008 15:20:03 GMT From: Velko Ivanov <vivanov@ivanov-nest.com> To: freebsd-python@FreeBSD.org Subject: Re: ports/118301: devel/py-setuptools easy-install.pth contents lost on upgrade clobbering ports using it Message-ID: <200810201520.m9KFK3lE007118@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/118301; it has been noted by GNATS. From: Velko Ivanov <vivanov@ivanov-nest.com> To: bug-followup@FreeBSD.org Cc: Subject: Re: ports/118301: devel/py-setuptools easy-install.pth contents lost on upgrade clobbering ports using it Date: Mon, 20 Oct 2008 17:59:32 +0300 I just hit the same thing and it fried all our Trac sites .. very unpleasant Somewhat quicker workaround - edit /usr/local/lib/pythonX.X/easy-install.pth and add the names of all directories under /usr/local/lib/pythonX.X/, that end in .egg For our setup after update easy-install.pth contains: import sys; sys.__plen = len(sys.path) ./setuptools-0.6c9-py2.5.egg import sys; new=sys.path[sys.__plen:]; del sys.path[sys.__plen:]; p=getattr(sys,'__egginsert',0); sys.path[p:p]=new; sys.__egginsert = p+len(new) should be: import sys; sys.__plen = len(sys.path) ./setuptools-0.6c9-py2.5.egg ./Trac-0.11.1-py2.5.egg ./Genshi-0.5.1-py2.5-freebsd-7.0-STABLE-amd64.egg ./Pygments-0.11.1-py2.5.egg import sys; new=sys.path[sys.__plen:]; del sys.path[sys.__plen:]; p=getattr(sys,'__egginsert',0); sys.path[p:p]=new; sys.__egginsert = p+len(new)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200810201520.m9KFK3lE007118>