From owner-freebsd-python@freebsd.org Mon Apr 25 11:24:42 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 5A20FB1C215 for ; Mon, 25 Apr 2016 11:24:42 +0000 (UTC) (envelope-from woodsb02@gmail.com) Received: from mail-wm0-x22a.google.com (mail-wm0-x22a.google.com [IPv6:2a00:1450:400c:c09::22a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id EFDBE13B5 for ; Mon, 25 Apr 2016 11:24:41 +0000 (UTC) (envelope-from woodsb02@gmail.com) Received: by mail-wm0-x22a.google.com with SMTP id e201so81983903wme.0 for ; Mon, 25 Apr 2016 04:24:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=usPpRU+JG1+aBkalR19Psnc2jjJ3h8d5m42Zugsr26Q=; b=mRuJWPuy/8MlDLQ3wlFV34xy8moPifveUj6/4c/uyU8w/lQpX9yjkFZ0wYMEBfi9EJ SxvAc89JpSj8dojefJkNwBGZMO/AC5lm6dAXC6M0+Aq87bTUh9TAmhySmgFgRSsKXXOt pfJJ+ip5RLksew+4wVIIbMRp/FshPj+pjgjhfz2EeYd3dkNTjwMCWyM4ELK2dsy/Z8nQ MHA2UhWEwGjmsKIray18TFscdpWw8963+wMt6nqTr79DKGpIonlGlhFAhgyx4uS2Zx41 M5ROuoP1kFOQCE2VdakpKBmub+s5CyWev+pTwrHy0jU+IvuHXMN1qGQlpezMWpaNtPYS pEOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=usPpRU+JG1+aBkalR19Psnc2jjJ3h8d5m42Zugsr26Q=; b=G86XKqMZ7QunU4zYOSHj3P3Ipz853qdkSAEnWEk05hL0cmF2DO0ZSKr+t6ZqkLIIyX IkKzHJrBY62X2aOelXRxNImjvQiKWRzGvdUBYfPoL7LsBKzVjw9yLVcxiXqQr+XG88dR PzuHIsLA/CdbGsT114iivHDSJ7eGjRa26e2G9Iz5P3zwGJuuO3vAbn7wB1vAfnRp2eIU Fkb21CEcJIqSC4CScJqobkhDJ5gP1N0NImCT2QIfvO1oZGnHEo/IuceVblsvx5jVngON 0weXBqIGr9tXhmmXY0dmtzNvtbiAVCZDSWFM1xEW5pFuz7anr5OSUFbd+xPu3cExX3zz SDIw== X-Gm-Message-State: AOPr4FU3wWb21HGs1qp1/djfOhjnsW0Z9cSAFWnyFmdtmVb8I31T/5+rChCqML/6xGIBXDVFMjpo+P0HEHC7xA== MIME-Version: 1.0 X-Received: by 10.194.157.195 with SMTP id wo3mr34132944wjb.155.1461583480573; Mon, 25 Apr 2016 04:24:40 -0700 (PDT) Received: by 10.194.42.41 with HTTP; Mon, 25 Apr 2016 04:24:40 -0700 (PDT) In-Reply-To: <571C3018.6020809@ShaneWare.Biz> References: <571C3018.6020809@ShaneWare.Biz> Date: Mon, 25 Apr 2016 13:24:40 +0200 Message-ID: Subject: Re: PYDISTUTILS_INSTALLNOSINGLE error From: Ben Woods To: Shane Ambler Cc: freebsd-python@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.21 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: Mon, 25 Apr 2016 11:24:42 -0000 On 24 April 2016 at 04:31, Shane Ambler wrote: > 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 > > Hi Shane, Thanks for your reply. I have had a look, and there is only 1 version of setuptools-20.0-py2.7.egg-info in /usr/local/lib/python2.7/site-packages/ So this does not seem to be the issue. In fact, I think it may be that the setup.py that comes bundled with the multimedia/quodlibet software does not support --single-version-externally-managed and therefore requires PYDISTUTILS_INSTALLNOSINGLE=yes? Is PYDISTUTILS_INSTALLNOSINGLE being deprecated because each piece of software that comes bundled with setup.py should be updating it to the latest which supports --single-version-externally-managed ? Regards, Ben