[Distutils] pkg_resources API use according to Nullege search engine
Barry Warsaw
barry at python.org
Mon Oct 1 18:18:20 CEST 2012
On Oct 01, 2012, at 03:43 PM, Vinay Sajip wrote:
>Barry Warsaw <barry <at> python.org> writes:
>> Why not provide this by distlib?
>
>Only because it doesn't add much value, and (if you do all that pkg_resources
>does) might mean that you have to maintain a cache.
Well, it's just something that client code would have to do anyway, which
leads to multiple wheel invention and bugs.
>As a matter of interest, what are the APIs you're using which need filenames
>but can't use bytes or streams?
Two that come to mind.
* Testing command line arguments that take a file name (e.g. test that
--config <filename> works).
* Generating file: urls to generalized downloaders for local resources.
Cheers,
-Barry
More information about the Distutils-SIG
mailing list