[Zope-dev] Re: [Zope3-dev] pkg_resources or pkgutil?

Fred Drake fdrake at gmail.com
Sat Jul 8 23:29:19 EDT 2006


On 5/25/06, Philipp von Weitershausen <philipp at weitershausen.de> wrote:
> I think they do pretty much the same thing (but I could be mistaken).
> Are they interchangeable? If not, are they compatible so that we just
> add both ways to both files? If they're not compatible, which one should
> we use in the future?

Looks like no one bothered to answer this.  :-(

No, they aren't equivalent.  The pkg_resources flavor is only
effective if pkg_resources is available; I don't think that should be
assumed.  The pkgutil.extend_path version should be used as the
fallback when pkg_resources is not available.


  -Fred

-- 
Fred L. Drake, Jr.    <fdrake at gmail.com>
"Every sin is the result of a collaboration." --Lucius Annaeus Seneca


More information about the Zope-Dev mailing list