[Catalog-sig] How to get a list of package releases
Phillip J. Eby
pje at telecommunity.com
Thu Jan 18 17:54:11 CET 2007
At 02:50 PM 1/18/2007 +0100, =?ISO-8859-2?Q?Micha=B3_Kwiatkowski?= wrote:
>Related setuptools question: is there a way to get list of available
>versions from easy_install?
The setuptools.package_index.PackageIndex class knows about all
discoverable versions. However, this doesn't extend to versions that have
been hidden by the package author. To have more than one discoverable
version at the PyPI level, the author has to have made them visible in the
But, whichever ones *are* visible can be discovered by the PackageIndex
class, along with any that are linked from the Home Page or Download URLs,
or are linked on the package's PyPI page.
More precisely, PackageIndex doesn't track versions; it tracks available
*distributions*, which may include source distributions, SVN checkouts,
eggs, .exe's, etc. But each distribution object carries version info
determined from its filename.
More information about the Catalog-sig