From owner-freebsd-ports@FreeBSD.ORG Sun Apr 13 01:22:39 2014 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 02C388CE for ; Sun, 13 Apr 2014 01:22:39 +0000 (UTC) Received: from mail-pa0-x229.google.com (mail-pa0-x229.google.com [IPv6:2607:f8b0:400e:c03::229]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id CC32A13A4 for ; Sun, 13 Apr 2014 01:22:38 +0000 (UTC) Received: by mail-pa0-f41.google.com with SMTP id fa1so6926719pad.0 for ; Sat, 12 Apr 2014 18:22:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:reply-to:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=yf0Uzi16wWdZ+YxM4sFBRraHwnXQzkZLr/6m6K4e9yY=; b=LGp9tS2dYKfarhWVab2rZzKtgn9cbv7ZvkSOPjMqxd6beZHvpUWgwMnGWTQYwowNFs 1AGdzifWNv4CziBVVYsIcxX6DvPuGxD0P969sJbNVv6KLkw/m+wv/zMjEwFeCZnv13Rc DMlHNZoJWTQNZ5SJ4HWnPCxK8bkGpfEbGI/HKDD7BncRvyjdhXfYEgncF7uINCCoIbBI 08NbZf7wq7IggZQUUdoH5Eg8hZk3QjoQ/co+boYp0PM1GHQMdciNkYWXza7EoJl4T6Ll nuWX9hEQ05zpziBvXNh1AFpz+dJxm04rrC+SIcdoWOzeK9gEXQu6aZK4UZxN67edWUyD wz+Q== X-Received: by 10.67.1.202 with SMTP id bi10mr14484969pad.68.1397352158483; Sat, 12 Apr 2014 18:22:38 -0700 (PDT) Received: from [192.168.1.7] (ppp59-167-128-11.static.internode.on.net. [59.167.128.11]) by mx.google.com with ESMTPSA id n6sm24651236pbj.22.2014.04.12.18.22.36 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 12 Apr 2014 18:22:37 -0700 (PDT) Message-ID: <5349E6D3.8000701@FreeBSD.org> Date: Sun, 13 Apr 2014 11:22:27 +1000 From: Kubilay Kocak User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:28.0) Gecko/20100101 Thunderbird/28.0 MIME-Version: 1.0 To: FreeBSD Ports Subject: pkg-static: Plist error, directory listed as a file: .egg-info X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: koobs@FreeBSD.org List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Apr 2014 01:22:39 -0000 Over the past week, a number of users have reported the following error when upgrading Python ports: "pkg-static: Plist error, directory listed as a file:.egg-info" This has been isolated as a symptom of: a) A recent pkg version (1.2.7_1) which now generates an error instead of silently creating a corrupt package b) Python installations that contain *multiple* python packages that provide the setuptools module (such as setuptools and distribute). This (b) can either be the result of a manual install as root (via easy_install or pip) outside of the scope of ports/packages, or due to leftovers from previous upgrades. The root cause is a version of setuptools is imported during the python setup.py `install` stage, that does not contain a patch which removes directory entries from --record output (a feature of setuptools). Users should inspect their ${LOCALBASE}/lib/pythonX.Y/site-packages directory, and remove any packages that reference old versions of setuptools or distribute. Some examples of entries that may be removed are: 1) distribute-0.6.35-py2.7.egg 2) setuptools-0.6c11-py2.7.egg 3) *Any* version of setuptools directly from PyPi via pip or easy_install If you have any questions, or are unsure whether you can remove a particular entry or not, either: - Delete it, then reinstall devel/py-setuptoolsXY for good measure, OR - Check with us on the mailing list or at #freebsd-python on freenode IRC TLDR: You want to be left with the version of setuptools from ports/packages (currently 2.0.1) as the *only* installed Python package in site-packages/.