pypa/pip — pull request #882 by qwcode (2013-04-02 05:58:09+00:00)
Title: wheel finder priority based on the order of the pep425 supported tags

contains the logic to prefer e.g. "simple-0.1-cp26-none-linux_x86_64.whl'" over "simple-0.1-py3-none-any.whl"

contains some refactor for testability.

I was tempted to do more refactor, but better to isolate that in a separate pull.