[Distutils] distlib updated with resources API

Tarek Ziadé tarek at ziade.org
Wed Sep 26 22:40:37 CEST 2012


On 9/23/12 5:57 PM, Vinay Sajip wrote:
> I've updated distlib[1] with a resources API - functionality for accessing data
> files co-located with code in Python packages. This is missing from the stdlib
> and currently people use pkg_resources to achieve this.
>
> The design and implementation allows for accessing resources from packages
> imported from the file system or from .zip files, and is intended to be
> extensible to other PEP 302-compliant import systems.
>
> The update includes:
>
> A short tutorial showing how to use the API. [2]
> A discussion of the design of the API. [3]
> Reference documentation for the API. [4]
>
> I'd be interested in any and all feedback on this - be it on design, code, docs.
> Please regard it as very much a first draft - it would appear to cover pretty
> much the same functionality as the corresponding part of pkg_resources [5].
Nice work !

On a side note, since these are the original modules that were taking 
out of Python's packaging implementation,
I don't think you can copyright them under your name like what I have 
seen in setup.py

Unless your plan is not to have distlib incorporated into Python but 
roll a separate project, I'd recommend having it in hg.python.org
under the PSF umbrella.

If it's a separate project I think the original licencing must remain

Cheers
Tarek


More information about the Distutils-SIG mailing list