Date: Wed, 03 Oct 2012 16:11:44 +0400 From: Ruslan Mahmatkhanov <cvs-src@yandex.ru> To: Volodymyr Kostyrko <c.kworr@gmail.com> Cc: freebsd-python@FreeBSD.org Subject: Re: py-distribute update leftover Message-ID: <506C2B80.70204@yandex.ru> In-Reply-To: <506C1F7F.9020405@gmail.com> References: <506C1F7F.9020405@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?506C2B80.70204>