From owner-freebsd-ports@FreeBSD.ORG Wed May 28 20:34:13 2008 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 52B6D1065676 for ; Wed, 28 May 2008 20:34:13 +0000 (UTC) (envelope-from paul+fbsd@it.ca) Received: from mail.it.ca (mail.it.ca [216.235.7.67]) by mx1.freebsd.org (Postfix) with ESMTP id DD51C8FC1B for ; Wed, 28 May 2008 20:34:12 +0000 (UTC) (envelope-from paul+fbsd@it.ca) Received: from mail.it.ca (paul@mail [216.235.7.67]) by mail.it.ca (8.13.3/8.13.3) with ESMTP id m4SK3IYT092587; Wed, 28 May 2008 16:03:18 -0400 (EDT) (envelope-from paul+fbsd@it.ca) DomainKey-Signature: a=rsa-sha1; s=a; d=it.ca; c=nofws; q=dns; h=received:x-authentication-warning:date:from:to:cc:subject: message-id:reply-to:references:mime-version:content-type: content-disposition:in-reply-to:user-agent; b=d7ws5K1M8G+B45NUPCCG87o+WsTZv5WNM+rWrQLlxfIvwTrYDjkZ8VxS2aBLZ1GjB qKtUGHOacwgbFucPTrTTkfrHGqzcZserIrDV+rpwJIf6y76jPD1yL2Ns3Ojmh/f Received: (from paul@localhost) by mail.it.ca (8.13.3/8.13.3/Submit) id m4SK3IWN092585; Wed, 28 May 2008 16:03:18 -0400 (EDT) (envelope-from paul+fbsd@it.ca) X-Authentication-Warning: mail.it.ca: paul set sender to paul+fbsd@it.ca using -f Date: Wed, 28 May 2008 16:03:17 -0400 From: Paul Chvostek To: Greg Larkin Message-ID: <20080528200317.GA66364@it.ca> References: <20080528061932.GM6447@it.ca> <004201c8c0ed$97db8f70$0c01a8c0@FIREBALL> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <004201c8c0ed$97db8f70$0c01a8c0@FIREBALL> User-Agent: Mutt/1.5.12-2006-07-14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (mail.it.ca [216.235.7.67]); Wed, 28 May 2008 16:03:19 -0400 (EDT) Cc: freebsd-ports@freebsd.org Subject: Re: what do I do with python eggs? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-ports@freebsd.org List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 May 2008 20:34:13 -0000 Thanks Greg. On Wed, May 28, 2008 at 02:06:45PM -0400, Greg Larkin wrote: > > > > I'm making a port that uses Python and easy_install. I'm not ... > > The catch is, it doesn't clean up. A `make deinstall` or ... > > Have a look at the www/trac-wikirename port, and I think you'll get some > ideas there. The pkg-plist includes the following: > > %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%% > > That should clean up the .egg file for you, but check this section of the > Makefile, as you'll need something similar in yours: > > USE_PYTHON= 2.3+ > USE_PYDISTUTILS= easy_install > PYDISTUTILS_PKGNAME= TracWikiRename Yup, this is pretty much exactly what I'm doing, but with PYDISTUTILS_PKGNAME=${PORTNAME} My pkg-plist contains three lines -- two scripts in ${PREFIX}/bin and the line quoted above, verbatim. Yet, when I `make deinstall`, I get: pkg_delete: cannot delete specified file '/usr/local/lib/python2.5/site-packages/twill-0.9-py2.5.egg' - it is a directory! this packing list is incorrect - ignoring delete request A look into the installed package's +CONTENTS shows the egg directory as if it were a normally installed file, though there is an @unexec line that runs `easy_install -m` which I think may be part of the uninstall. http://peak.telecommunity.com/DevCenter/EasyInstall#uninstalling-packages doesn't really help much. Any further thoughts? -- Paul Chvostek "To larger sight, the rim of shadow is the line of light." - Thomas William Parsons