[Distutils] Clearing WorkingSet in pkg_resources. .. ?

P.J. Eby pje at telecommunity.com
Sun May 17 04:36:13 CEST 2009


At 10:24 PM 5/16/2009 -0400, David Lyon wrote:

>Hi,
>
>I'm using working set and I have come into an issue.
>
>In my package manager I can now install packages and deinstall fine.
>
>The problem that I now face is want to refresh WorkingSet after
>a package has been deinstalled.
>
>Or, I need to do the refresh when swapping to a different version
>of python that is installed on the system.

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.)



More information about the Distutils-SIG mailing list