fixes #310 and allows for versions like -py3 instead of -py2.6 or -py3.0

This commit is contained in:
Olivier Girardot 2011-12-10 16:35:20 +01:00 committed by Carl Meyer
parent 3b320cbf50
commit d1b787f961
1 changed files with 1 additions and 1 deletions

View File

@ -248,7 +248,7 @@ class PackageFinder(object):
_egg_fragment_re = re.compile(r'#egg=([^&]*)')
_egg_info_re = re.compile(r'([a-z0-9_.]+)-([a-z0-9_.-]+)', re.I)
_py_version_re = re.compile(r'-py([123]\.[0-9])$')
_py_version_re = re.compile(r'-py([123]\.?[0-9]?)$')
def _sort_links(self, links):
"Returns elements of links in order, non-egg links first, egg links second, while eliminating duplicates"