Commit 50554a5c authored by PJ Eby's avatar PJ Eby

Handle non-requirement installs correctly for dependency processing

(e.g. "setup.py install", or "easy_install somefile/someurl").

--HG--
branch : setuptools
extra : convert_revision : svn%3A6015fed2-1504-0410-9fe1-9d1591cc4771/sandbox/trunk/setuptools%4041383
parent d675527e
......@@ -379,10 +379,10 @@ class easy_install(Command):
elif requirement is not None and dist.key != requirement.key:
log.warn("Skipping dependencies for %s", dist)
return # XXX this is not the distribution we were looking for
if requirement is None or dist not in requirement:
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
)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment