mirror of https://github.com/pypa/pip
Canonicalize InstallationCandidate name
Caught by test_single_download_from_requirements_file etc.
This commit is contained in:
parent
2f36ac7587
commit
b89e1c2fb4
|
@ -1,3 +1,4 @@
|
|||
from pip._vendor.packaging.utils import canonicalize_name
|
||||
from pip._vendor.pkg_resources import (
|
||||
DistributionNotFound,
|
||||
VersionConflict,
|
||||
|
@ -121,7 +122,7 @@ class Factory(object):
|
|||
link=ican.link,
|
||||
extras=extras,
|
||||
parent=parent,
|
||||
name=ican.name,
|
||||
name=canonicalize_name(ican.name),
|
||||
version=ican.version,
|
||||
)
|
||||
return self._make_candidate_from_dist(
|
||||
|
|
Loading…
Reference in New Issue