[Distutils] Q about best practices now (or near future)
Marcus Smith
qwcode at gmail.com
Thu Jul 18 20:17:08 CEST 2013
> 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)
>
>
it checks the version. you get this. I have pip-1.5dev1 in this case, but
a script wrapper referencing 1.4rc5
(pip)qwcode at qwcode:~/p/pypa/pip$ pip --version
Traceback (most recent call last):
File "/home/qwcode/.qwdev/pip/bin/pip", line 5, in <module>
from pkg_resources import load_entry_point
File
"/home/qwcode/.qwdev/pip/lib/python2.6/site-packages/pkg_resources.py",
line 3011, in <module>
parse_requirements(__requires__), Environment()
File
"/home/qwcode/.qwdev/pip/lib/python2.6/site-packages/pkg_resources.py",
line 626, in resolve
raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: pip==1.4rc5
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20130718/6474fa28/attachment.html>
More information about the Distutils-SIG
mailing list