[Distutils] Q about best practices now (or near future)

Vinay Sajip vinay_sajip at yahoo.co.uk
Thu Jul 18 20:02:47 CEST 2013


Marcus Smith <qwcode <at> gmail.com> writes:

 
> pkg_resources scripts confirm the version.  don't see that here?  not 
necessary?

The load_entry_point needs the dist name because of how it's implemented - it 
defers to the distribution instance. AFAICT there are no actual checks.

def load_entry_point(dist, group, name):
    """Return `name` entry point of `group` for `dist` or raise ImportError"""
    return get_distribution(dist).load_entry_point(group, name)


Regards,

Vinay Sajip



More information about the Distutils-SIG mailing list