[Distutils] Entry points: specifying and caching

Nick Coghlan ncoghlan at gmail.com
Wed Oct 18 23:51:00 EDT 2017


On 19 October 2017 at 12:16, Daniel Holth <dholth at gmail.com> wrote:

> We said "you won't have to install setuptools" but actually "you don't
> have to use it" is good enough. If you had 2 pkg-resources implementations
> running you might wind up scanning sys.path extra times...
>
True, but that's where Thomas's suggestion of attempting to define a
standardised caching convention comes in: right now, there's no middle
ground between "you must use pkg_resources" and "every helper library must
scan for the raw entry-point metadata itself".

If there's a defined common caching mechanism, and support for it is added
to new versions of pkg_resources, then the design constraint becomes "If
you end up using multiple entry-point scanners, you'll want a recent
setuptools/pkg_resource, so you don't waste too much time on repeated
metadata scans".

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20171019/4fe8a1c4/attachment.html>


More information about the Distutils-SIG mailing list