From owner-freebsd-python@freebsd.org Sun Apr 24 02:32:13 2016 Return-Path: Delivered-To: freebsd-python@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A285EB12D3C for ; Sun, 24 Apr 2016 02:32:13 +0000 (UTC) (envelope-from FreeBSD@shaneware.biz) Received: from ipmail06.adl2.internode.on.net (ipmail06.adl2.internode.on.net [150.101.137.129]) by mx1.freebsd.org (Postfix) with ESMTP id 3F5FF1F76 for ; Sun, 24 Apr 2016 02:32:12 +0000 (UTC) (envelope-from FreeBSD@shaneware.biz) Received: from ppp118-210-182-127.lns20.adl6.internode.on.net (HELO leader.local) ([118.210.182.127]) by ipmail06.adl2.internode.on.net with ESMTP; 24 Apr 2016 12:01:55 +0930 Subject: Re: PYDISTUTILS_INSTALLNOSINGLE error To: Ben Woods , freebsd-python@freebsd.org References: From: Shane Ambler Message-ID: <571C3018.6020809@ShaneWare.Biz> Date: Sun, 24 Apr 2016 12:01:52 +0930 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.7.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Apr 2016 02:32:13 -0000 On 23/04/2016 17:16, Ben Woods wrote: > Hi everyone, > > Does anyone know why PYDISTUTILS_INSTALLNOSINGLE is marked as deprecated? > It is still used by 9 ports... > > I am working on an update to multimedia/quodlibet in PR208988, and it gives > the warning "PYDISTUTILS_INSTALLNOSINGLE is deprecated, please do not use > it anymore". However, if I remove that line from the Makefile, the build > fails with "error: option --single-version-externally-managednot > recognized". > > --single-version-externally-managed is added by USES=python if you dont set > PYDISTUTILS_INSTALLNOSINGLE=yes. > > Regards, > Ben > > I had that error for some time and when I finally looked into it, it turned out an old copy of setuptools was (partly) in place. This error also caused entry_points in setup.py to fail. Look in /usr/local/lib/python${VERS}/site-packages for multiple setuptools-**-egg-info folders. You might have (for py27) setuptools-20.0-py2.7.egg-info setuptools_hg-0.4-py2.7.egg-info setuptools_scm-1.10.1-py2.7.egg-info which is ok, but if you have setuptools-18.7-py2.7.egg-info setuptools-5.4.1-py2.7.egg-info then you should delete the setuptools-5.4.1-py2.7.egg-info Check that the old port is not installed - pkg info -ox setuptools for me the old version of the egg-info dir was an empty dir left behind from the old port version and I deleted it manually - no more problem. Check each python version as it most likely happen to each version installed at the time the old version was meant to be removed. -- FreeBSD - the place to B...Software Developing Shane Ambler