Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Mar 2013 13:30:37 +0100
From:      Loic Capdeville <lolox-freebsd@lolox.net>
To:        Volodymyr Kostyrko <c.kworr@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Upgrade devel/py-setuptools
Message-ID:  <515437ED.7030204@lolox.net>
In-Reply-To: <515321B0.4020900@gmail.com>
References:  <5152E47B.6080904@lolox.net> <5152EB33.4010009@gmail.com> <5152ED8B.8080408@lolox.net> <5152EEBC.20805@lolox.net> <5152F3AE.3010604@gmail.com> <5152F513.3040205@lolox.net> <51531E91.7000306@gmail.com> <5153204C.6080905@lolox.net> <515321B0.4020900@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 27/03/2013 17:43, Volodymyr Kostyrko wrote:
> 2013-03-27 18:37, Loic Capdeville wrote:
>>>>>> import sys; sys.__plen = len(sys.path)
>>>>>> ../setuptools-0.6c11-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)
>>>>>
>>>>> Looks like py-distribute is not installed at all.
>>>>>
>>>>> what was the outcome of "portupgrade -fo devel/py-distribute
>>>>> devel/py-setuptools"? Can you try running that again?
>>>>>
>>>>
>>>> It hasn't printed anything since the first time I tried to run it...
>>>> and still print nothing.
>>>
>>> So here is a main problem. If it prints nothing it doesn't work.
>>>
>>> Do you have portupgrade or portmaster installed? Did it yield at least
>>> one line? Some errors? If it doesn't that's surely a sign that something
>>> is going wrong.
>>>
>> I use portupgrade regularly to upgrade my ports, and usually everything
>> goes right.
>> If fails only with that particular operation (or these portupgrade
>> options)
>> Do I have to install "devel/py-distribute" separately, or should the
>> "portupgrade -fo" command do everything itself (uninstall py-setuptools
>> and install py-distribute) ?
>
> This command should forcefully deintsall second package and replace it
> with first one. I'm not using portupgrade, I switched to portmaster long
> time ago so I can't help you with it.
>
> If you want to make the switch by hand I think you should:
>
> pkg_delete -f py27-setuptools-0.6c11_3
> # now write down the whole list of dependent packages
>
> cd /usr/ports/devel/py-distribute ; make install clean
> portupgrade -f ..list of packages that require setuptools..
>

If finally did it by hand.
Note: upgrading packages that require setuptools isn't necessary, since 
py-distribute is backward compatible with py-setuptools.

Thanks for your help.

Loic




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?515437ED.7030204>