Python 2.5 and 2.6 with MacPorts

1

I have installed on my system both python25 and python26 using Macports. Now I want to uninstall python25 and all the py25-* packages with no real dependents. Unfortunately, when I do

port dependents python25

I get a long list of dependents including things like mercurial and bzr. When I do

port info mercurial

I see that mercurial depends on python26. I know I can force the removal of python25 by

port uninstall -f python25

but I was wondering if there is a way to let Macports know that mercurial is no longer dependent on python25.

cefstat

Posted 2009-10-01T18:23:02.790

Reputation: 235

Answers

4

MacPorts currently does not upgrade the dependency tree for installed packages. That is, if mercurial moved from depending on python25 when you installed it to python26, it will continue to believe it needs python25 until you uninstall it. Simply upgrading the package won't fix this behavior.

Try uninstalling mercurial and then reinstalling it.

Jeremy L

Posted 2009-10-01T18:23:02.790

Reputation: 2 587

Interesting. That's what I suspected but I was hoping that there is some obscure command somewhere to update the dependency tree. – cefstat – 2009-10-01T18:55:11.273

0

Generally speaking there is no way to let macports know that port A is no longer depends on port B. But for this case, it seems that in fact mercurial works fine with both python25 and python26. (Though the port profile can only choose one dependency.) So simply replacing python25 with python26 won't break mercurial.

weakish

Posted 2009-10-01T18:23:02.790

Reputation: 219