[Distutils] distribute 0.6.10 and convert_2to3_doctests

Barry Warsaw barry at python.org
Sun Jan 31 01:08:57 CET 2010


On Jan 29, 2010, at 11:03 PM, Tarek Ziadé wrote:

>Yes, that's how Jinja does already for example, using Setuptools's
>pkg_resources :
>
>__version__ = __import__('pkg_resources').get_distribution('Jinja2').version

And that's different yet again from what PJE suggests.  This is screaming for
a blessed API to be pushed into the stdlib.

(BTW, why use __import__() there?)

>see http://dev.pocoo.org/projects/jinja/browser/jinja2/__init__.py
>
>Notice that this pkg_resources browsing feature would be in Distutils
>once PEP 376 is accepted, so until then, I could probably backport in
>Distribute the setup.cfg feature.

That would be cool.
-Barry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20100130/5ab6e38f/attachment.pgp>


More information about the Distutils-SIG mailing list