From owner-freebsd-python@FreeBSD.ORG Wed Oct 3 12:12:03 2012 Return-Path: Delivered-To: freebsd-python@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E0ED5106564A for ; Wed, 3 Oct 2012 12:12:03 +0000 (UTC) (envelope-from cvs-src@yandex.ru) Received: from forward3h.mail.yandex.net (forward3h.mail.yandex.net [IPv6:2a02:6b8:0:f05::3]) by mx1.freebsd.org (Postfix) with ESMTP id 5AA608FC14 for ; Wed, 3 Oct 2012 12:12:00 +0000 (UTC) Received: from smtp4h.mail.yandex.net (smtp4h.mail.yandex.net [84.201.186.21]) by forward3h.mail.yandex.net (Yandex) with ESMTP id 3503F13612C1; Wed, 3 Oct 2012 16:11:51 +0400 (MSK) Received: from smtp4h.mail.yandex.net (localhost [127.0.0.1]) by smtp4h.mail.yandex.net (Yandex) with ESMTP id E50972C0286; Wed, 3 Oct 2012 16:11:50 +0400 (MSK) Received: from unknown (unknown [77.66.155.61]) by smtp4h.mail.yandex.net (nwsmtp/Yandex) with ESMTP id BoraBvxG-BoraxjHw; Wed, 3 Oct 2012 16:11:50 +0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1349266310; bh=yPM0V/QQQottCCOZlp/KFSj8eHOhfUa3gbvWUTQzQ7Y=; h=Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject: References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=Hd2MThLIl7u+XkmaXCn7EKW1gIPUkOeo1GctG782534ivpNE2WGA1kSXZ+YoULr2Y inZKMYKD2rUYGGONjsrLCZV5YPHbph41hktiGoSIEm7v6ayGk4teCO1hAfpu/7qAlY oNISBscFDhoxp6jKuEANPfJkhFL8w1oY9lfHzWwc= Message-ID: <506C2B80.70204@yandex.ru> Date: Wed, 03 Oct 2012 16:11:44 +0400 From: Ruslan Mahmatkhanov User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:15.0) Gecko/20120912 Thunderbird/15.0.1 MIME-Version: 1.0 To: Volodymyr Kostyrko References: <506C1F7F.9020405@gmail.com> In-Reply-To: <506C1F7F.9020405@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-python@FreeBSD.org Subject: Re: py-distribute update leftover X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Oct 2012 12:12:04 -0000 Hello, Volodymyr Kostyrko wrote on 03.10.2012 15:20: > Hello. > > Recent py-ditribute update doesn't update easy_install.pth on python2.7: > > ===>>> The following actions were performed: > Re-installation of py27-distribute-0.6.28 > > # cd /usr/local/lib/python2.7/site-packages/ > # cat easy-install.pth > import sys; sys.__plen = len(sys.path) > ./distribute-0.6.27-py2.7.egg > ./Pyrseas-0.5.0-py2.7.egg > ./Babel-0.9.6-py2.7.egg > ./Genshi-0.6-py2.7.egg > ./Pygments-1.5-py2.7.egg > ./Trac-0.12.3-py2.7.egg > ./hg_git-0.3.3-py2.7.egg > ./graphviz-0.7.4-py2.7.egg > ./TracTocMacro-11.0.0.3-py2.7.egg > ./pytz-2012f-py2.7.egg > import sys; new=sys.path[sys.__plen:]; del sys.path[sys.__plen:]; > p=getattr(sys,'__egginsert',0); sys.path[p:p]=new; sys.__egginsert = > p+len(new) > > And a new file was created: > > # cat easy-install.pth.dist > import sys; sys.__plen = len(sys.path) > ./distribute-0.6.28-py2.7.egg > import sys; new=sys.path[sys.__plen:]; del sys.path[sys.__plen:]; > p=getattr(sys,'__egginsert',0); sys.path[p:p]=new; sys.__egginsert = > p+len(new) It's in pkg-plist logic: """ %%PYTHON_SITELIBDIR%%/easy-install.pth.dist @exec if [ ! -f %B/easy-install.pth ]; then cp %B/%f %B/easy-install.pth; fi """ easy-install.pth.dist is always installed, and it will be only copied to easy-install.pth if there is no one already. What about easy-install.pth contents is not updated - I need an testing environment. Would you describe the steps you did to stick with distribute instead of setuptools and I'll try to reproduce? -- Regards, Ruslan Tinderboxing kills... the drives.