From owner-freebsd-python@FreeBSD.ORG Mon Oct 20 15:20:04 2008 Return-Path: Delivered-To: freebsd-python@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 588951065681 for ; Mon, 20 Oct 2008 15:20:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 4679F8FC16 for ; Mon, 20 Oct 2008 15:20:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id m9KFK3Er007119 for ; Mon, 20 Oct 2008 15:20:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id m9KFK3lE007118; Mon, 20 Oct 2008 15:20:03 GMT (envelope-from gnats) Date: Mon, 20 Oct 2008 15:20:03 GMT Message-Id: <200810201520.m9KFK3lE007118@freefall.freebsd.org> To: freebsd-python@FreeBSD.org From: Velko Ivanov Cc: Subject: Re: ports/118301: devel/py-setuptools easy-install.pth contents lost on upgrade clobbering ports using it X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Velko Ivanov List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Oct 2008 15:20:04 -0000 The following reply was made to PR ports/118301; it has been noted by GNATS. From: Velko Ivanov 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)