upgrade functionality
Hello, Does setuptools have any mechanism for upgrading all packages installed with easy_install? Something similar to an "apt-get upgrade"? I have dozens of packages that have been installed with easy_install, to the point that I can't even recall the whole list. I worry that they are getting outdated... Naturally, the packages I Use more often get upgrade as I see fit but the others... Thanks, Flávio
At 09:22 AM 6/30/2007 -0300, Flavio Codeco Coelho wrote:
Hello,
Does setuptools have any mechanism for upgrading all packages installed with easy_install? Something similar to an "apt-get upgrade"?
Well, you can do something like from setuptools.command.easy_install import main as install from pkg_resources import Environment install(['-U'] + list(Environment())) That would be the equivalent of running "easy_install -U names of packages" for all installed packages.
I have dozens of packages that have been installed with easy_install, to the point that I can't even recall the whole list.
A quick recipe for listing active installed packages: python -c "for dist in __import__('pkg_resources').working_set: print dist" This won't list eggs that are installed but not active on sys.path. (e.g. older versions of packages, or ones installed in --multi-version mode).
Date: Sat, 30 Jun 2007 09:22:32 -0300 From: Flavio Codeco Coelho <fccoelho@fiocruz.br>
Hello,
Does setuptools have any mechanism for upgrading all packages installed with easy_install? Something similar to an "apt-get upgrade"?
I have dozens of packages that have been installed with easy_install, to the point that I can't even recall the whole list. I worry that they are getting outdated...
Naturally, the packages I Use more often get upgrade as I see fit but the others...
Thanks,
Fl=E1vio
With Enthought's Enstaller, you do the equivalent of "apt-get upgrade" by passing no args to -U: enstaller -U You can also list if there are upgrades available without installing them with -u (lowercase), and simply list what you have installed, the location, and if they're "active" or not with -l. Here's some additional documentation from the Enstaller wiki page, if you're interested: https://svn.enthought.com/enthought/wiki/Enstaller#Examples Because Enstaller also includes a fairly platform-specific GUI, only Windows XP and RedHat 3 64-bit are available at the moment. I will be making a change to the setup script so we can deploy only the command-line version for the remaining platforms while we port the GUI to those platforms. -- Rick Ratzel - Enthought, Inc. 515 Congress Avenue, Suite 2100 - Austin, Texas 78701 512-536-1057 x229 - Fax: 512-536-1059 http://www.enthought.com
participants (3)
-
Flavio Codeco Coelho -
Phillip J. Eby -
Rick Ratzel