From owner-freebsd-python@FreeBSD.ORG Fri Dec 4 15:50:05 2009 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 135011065F03 for ; Fri, 4 Dec 2009 15:50:05 +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 019558FC25 for ; Fri, 4 Dec 2009 15:50:05 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id nB4Fo4dZ066481 for ; Fri, 4 Dec 2009 15:50:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id nB4Fo4Dn066480; Fri, 4 Dec 2009 15:50:04 GMT (envelope-from gnats) Date: Fri, 4 Dec 2009 15:50:04 GMT Message-Id: <200912041550.nB4Fo4Dn066480@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: Fri, 04 Dec 2009 15:50:05 -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: Fri, 04 Dec 2009 17:05:42 +0200 Being just bitten by this again, I see it is not fixed yet. A plain cd /usr/local/lib/pythonX.X/ awk '\!/setuptools/ {print $0}; /setuptools/ { system("ls -ld *.egg | awk '"'"'{ print \"./\"$9 }'"'"'") }' easy-install.pth > temp_file mv temp_file easy-install.pth does the job, but I think the proper solution for the port would be to simply copy the easy-install.pth file before updating and restore it afterwards, because if you have installed some .egg's by some other means, you will be doubling their declarations by generating the file in this way. I can't expect that I will remember to copy the file next time we have setuptools update, so I thought - prepare yourself, save the awk script in the PR. Seems I remembered the place, not the details anyway.