tseaver/compoze — pull request #2 by SoftwareMaven (2012-12-24 20:03:59+00:00)
Title: Support indexing packages with multiple setups and no metadata

If a package doens't have package meta-data and there are multiple
setup.py files, the current indexer picks whichever setup.py comes
out of the archive first. Twisted has multiple setup.py's throughout
its archive, which causes the name/version detection to fail.

This patch addresses that by looking for a setup.py in its usual
location in an archive (/setup.py) while also using
the existing logic to fall back on.

Finally, extracting only the setup.py is problematic for complicated
projects (again, Twisted). So instead of just extracting setup.py,
extract the whole archive.