[Distutils] Clearing WorkingSet in pkg_resources. . . ?

P.J. Eby pje at telecommunity.com
Sun May 17 06:43:20 CEST 2009


At 10:45 PM 5/16/2009 -0400, David Lyon wrote:
>On Sat, 16 May 2009 22:36:13 -0400, "P.J. Eby" <pje at telecommunity.com>
>wrote:
> > Just create a fresh WorkingSet object, and use that one.  You
> > probably want to be using explicitly-created WorkingSet instances for
> > this anyway.  (easy_install certainly does.)
>
>I am creating a fresh one every time...
>
>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.



More information about the Distutils-SIG mailing list