On Wed, Sep 12, 2012 at 3:14 PM, Toshio Kuratomi a.badger@gmail.com wrote:
Mapping of pypi distribution names was something that I looked into a small bit with some Canonical people at PyCon two years ago. IIRC, it was part of trying to map distribution packages with each other and with pypi in order to figure out the state of python3 porting. Barry Warsaw still works there and might know more about what happened to it -- Allison Randal is who I was working with but I got the impression that she isn't working on that anymore so I don't know if she'll still have code around or not.
Grepping through my programming work for something else, I happened upon the work I did. Allison has it up on bitbucket (although it doesn't look like that has seen any work since my commits).
http://bitbucket.org/allison/py3kdeps
Once I saw the code, I remembered how we worked around many of the issues with mapping package names to pypi names and names in other distros. We used the tarball. For Fedora this is especially easy as we don't modify the tarball at all, so the tarball name is almost always going to be the same as what's in pypi. For Debian derivatives, the tarball gets renamed, but it's still possible to do this.
-Toshio