At 01:55 PM 12/7/2006 -0500, Alexander Michael wrote:
>Once a script has started, is it possible to forcibly ignore the
>version of a package listed in easy-install.pth and tell pkg_resources
>to require a newer version that is available on the sys.path?

Yes, but it's only possible with a crude hack at the moment.  Explicitly 
add your new version to the beginning of sys.path, then call 
pkg_resources.working_set.__init__().  This will clear and reset the global 
working set to match the current state of sys.path.

_______________________________________________
Distutils-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/distutils-sig

Reply via email to