I think it is confusing that easy_install blah doesn't do anything, and doesn't provide any clue, if it was to do an update. You need to say easy_install -U blah There are a few choices here. One might be that easy_install blah could notify you that an update is available. Personally, my preference would be to just do the update. Or, at least offer to if run interactively.
2009/10/16 Neal Becker <ndbecker2@gmail.com>:
I think it is confusing that easy_install blah
doesn't do anything, and doesn't provide any clue, if it was to do an update.
"Was to do"? It doesn't know that there is an update available, unless you ask it to check. It does tell you that it's already installed.
There are a few choices here. One might be that easy_install blah could notify you that an update is available.
That means that anytime you call easy_install it goes out on the net and asks, even if the product already is installed. It's a possibility, but I'm not convinced it's a good one.
Personally, my preference would be to just do the update.
That, I'm convinced is a bad idea. There may be a good reason for why the last version is not installed, such as something else you have installed requiring that version.
Or, at least offer to if run interactively.
What I can buy is an option to check, and ask if and upgrade should be done. -U will install the latest without asking, that may not be what you want. -- Lennart Regebro: Python, Zope, Plone, Grok http://regebro.wordpress.com/ +33 661 58 14 64
In article <hb9kte$ct2$1@ger.gmane.org>, Neal Becker <ndbecker2@gmail.com> wrote:
I think it is confusing that easy_install blah
doesn't do anything, and doesn't provide any clue, if it was to do an update. You need to say easy_install -U blah
There are a few choices here. One might be that easy_install blah could notify you that an update is available.
Personally, my preference would be to just do the update. Or, at least offer to if run interactively.
$ more ~/.pydistutils.cfg [easy_install] upgrade = 1 zip-ok = 0 -- Ned Deily, nad@acm.org
On Fri, Oct 16, 2009 at 6:20 AM, Neal Becker <ndbecker2@gmail.com> wrote:
I think it is confusing that easy_install blah
doesn't do anything, and doesn't provide any clue, if it was to do an update. You need to say easy_install -U blah
There are a few choices here. One might be that easy_install blah could notify you that an update is available.
pip works somewhat similarly (it won't do anything in this case), but in the tip it will say "Requirement already satisfied (use --upgrade to upgrade): blah". It doesn't actually check if an upgrade is available though. It actually keeps track of why something is installed, so it can tell the difference between something installed from the command line and installed as a requirement of some other package (where you definitely want to quickly pass over satisfied requirements). On the other hand, I find it useful sometimes to test things manually knowing the behavior is the same on the command line as with install_requires. -- Ian Bicking | http://blog.ianbicking.org | http://topplabs.org/civichacker
participants (4)
-
Ian Bicking -
Lennart Regebro -
Neal Becker -
Ned Deily