[Distutils] pkg_resources API use according to Nullege search engine

Daniel Holth dholth at gmail.com
Mon Oct 1 16:52:24 CEST 2012


On Mon, Oct 1, 2012 at 10:46 AM, Barry Warsaw <barry at python.org> wrote:
> On Sep 30, 2012, at 10:00 PM, Daniel Holth wrote:
>
>>resource_filename is very popular. I would have thought
>>resource_stream would be more popular. Unless your package is zipped
>>resource_filename is trivial to implement.
>
> I've used declare_namespace() once or twice.
>
> I use resource_filename(), resource_string(), resource_stream(), and
> resource_listdir() quite a bit.

declare_namespace() is special because we could probably rewrite it at
install time (in Python 3.3, by deleting __init__.py) or by calling
pkgutil.


More information about the Distutils-SIG mailing list