1
1
Fork 0
mirror of https://github.com/pypa/pip synced 2023-12-13 21:30:23 +01:00

Cleanup assignment of extras

This commit is contained in:
Pradyun Gedam 2018-07-27 20:09:14 +05:30
parent eb2935509f
commit 7e58c0d7db
No known key found for this signature in database
GPG key ID: DA17C4B29CB32E4B

View file

@ -126,9 +126,9 @@ class RequirementSet(object):
# If we're now installing a constraint, mark the existing
# object for real installation.
existing_req.constraint = False
existing_req.extras = tuple(
sorted(set(existing_req.extras).union(
set(install_req.extras))))
existing_req.extras = tuple(sorted(
set(existing_req.extras) | set(install_req.extras)
))
logger.debug("Setting %s extras to: %s",
existing_req, existing_req.extras)
# And now we need to scan this.