aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/command/easy_install.py
diff options
context:
space:
mode:
authorSteve Kowalik <steven@wedontsleep.org>2016-03-01 16:07:42 +1100
committerSteve Kowalik <steven@wedontsleep.org>2016-03-01 16:07:42 +1100
commit0ed33b7a4db605e4608f56d6bdb5efe81762b4cb (patch)
tree935aa03bf0cf0c2a5d8a5fb0f33b737bf3f9557c /setuptools/command/easy_install.py
parenta46fd8327e5c13b45fcc92322b4fe00a76f307da (diff)
downloadexternal_python_setuptools-0ed33b7a4db605e4608f56d6bdb5efe81762b4cb.tar.gz
external_python_setuptools-0ed33b7a4db605e4608f56d6bdb5efe81762b4cb.tar.bz2
external_python_setuptools-0ed33b7a4db605e4608f56d6bdb5efe81762b4cb.zip
Shift requirement parsing inside Requirement
Diffstat (limited to 'setuptools/command/easy_install.py')
-rwxr-xr-xsetuptools/command/easy_install.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py
index 08bc9c51..97de3395 100755
--- a/setuptools/command/easy_install.py
+++ b/setuptools/command/easy_install.py
@@ -710,10 +710,7 @@ class easy_install(Command):
elif requirement is None or dist not in requirement:
# if we wound up with a different version, resolve what we've got
distreq = dist.as_requirement()
- requirement = requirement or distreq
- requirement = Requirement(
- distreq.project_name, distreq.specs, requirement.extras
- )
+ requirement = Requirement(str(distreq.req))
log.info("Processing dependencies for %s", requirement)
try:
distros = WorkingSet([]).resolve(