[Catalog-sig] Standardized way of getting to a package download URL in Cheeseshop

Ian Bicking ianb at colorstudy.com
Wed Nov 9 23:05:29 CET 2005


Grig Gheorghiu wrote:
> It would be nice if there was a standardized way to get to a download
> URL for a given package listed at the Cheeseshop. Currently some
> packages are hosted there, some are hosted elsewhere, but in any case
> one would think that a pointer to the full URL for the package file
> could be kept on the Cheeseshop page for that package and made
> available via an API.

There's a not-exactly-standard way to download a package in setuptools, 
i.e., the algorithm easy_install uses to find packages.  You could grab 
the function out of there (I can't remember where it is, but it 
shouldn't be too hard to find).  You might want to copy it out and add 
extra information so you can score the download availability, since it 
finds some links that are deeper and further from the PyPI record than 
they should be (and they should lose points for that).

-- 
Ian Bicking  /  ianb at colorstudy.com  /  http://blog.ianbicking.org


More information about the Catalog-sig mailing list