mirror of https://github.com/pypa/pip
fixes #310 and allows for versions like -py3 instead of -py2.6 or -py3.0
This commit is contained in:
parent
3b320cbf50
commit
d1b787f961
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue