[Distutils] Clearing WorkingSet in pkg_resources. . . ?

P.J. Eby pje at telecommunity.com
Sun May 17 16:29:33 CEST 2009

At 12:55 AM 5/17/2009 -0400, David Lyon wrote:
>On Sun, 17 May 2009 00:43:20 -0400, "P.J. Eby" <pje at telecommunity.com>
> >>So after I deinstall, the package is still shown, even though it's
> >>no longer in the system. It's still in the interpretors memory.
> >
> > Do you mean on sys.path?  If it's an .egg file or directory on
> > sys.path it will probably still be listed as a distribution when you
> > create a new WorkingSet.  Either that, or it's an .egg-info egg whose
> > .egg-info you didn't delete.
>I have to restart the program for the refresh to work...
>Ideally, I would like to see the package list refreshed immediately
>after a package is installed or removed. I can make a work around
>and hide packages that are deinstalled, but i was hoping to find
>an easier way.

You didn't answer my question.

More information about the Distutils-SIG mailing list