easy_install: fragment support
I've attached a patch to detect fragments. There was a couple ideas bandied about; this seems the simplest. You use a link do: url#egg=package You can include a version, otherwise it's unversioned. The only package I've tested it on is "flup", listed on http://pythonpaste.org/package_index.html -- in that case there's no competing or versioned listings in PyPI; if there was the entry would simply be ignored and would be useless. PJE aso mentioned calling the packages things like flup_devel, so that it's a completely different package from flup. The problem, then, is that requirements can't be satisfied by the development package. It seems better to have some magic version string for development, that is neither more or less than other versions (or at least it depends on context -- it's the highest version number when using --develop [should that be implemented], and the lowest otherwise). But that's only useful given a --develop option to easy_install.py. -- Ian Bicking / ianb@colorstudy.com / http://blog.ianbicking.org Index: setuptools/package_index.py =================================================================== RCS file: /cvsroot/python/python/nondist/sandbox/setuptools/setuptools/package_index.py,v retrieving revision 1.11 diff -r1.11 package_index.py 8a9,10
# make emacs happy: ' EGG_FRAGMENT = re.compile(r'egg=([^=&]*)') 44,45c46,47 < < path = urlparse.urlparse(url)[2]
scheme, server, path, parameters, query, fragment = \ urlparse.urlparse(url)
46a49,53
if fragment: match = EGG_FRAGMENT.search(fragment) if match: return interpret_distro_name( url, match.group(1), metadata)
421a429,432
# Remove any fragments from the URL # url = url.split('#', 1)[0]
participants (3)
-
Bob Ippolito
-
Ian Bicking
-
Phillip J. Eby