Skip to content
This repository has been archived by the owner on May 23, 2023. It is now read-only.

Commit

Permalink
Merge d3a90fb into 0802e4f
Browse files Browse the repository at this point in the history
  • Loading branch information
NorthIsUp committed Apr 17, 2015
2 parents 0802e4f + d3a90fb commit ec9d027
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions venv_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,11 +301,13 @@ def trace_requirements(requirements):

# breadth-first traversal:
errors = False
queue = deque(requirements)
req_queue = deque(requirements)
processed_reqs = set()
result = []
seen_warnings = set()
while queue:
req = queue.popleft()
while req_queue:
req = req_queue.popleft()
processed_reqs.add(req.name)
if req.req is None:
# a file:/// requirement
continue
Expand All @@ -328,7 +330,9 @@ def trace_requirements(requirements):

for dist_req in sorted(dist.requires(), key=lambda req: req.key):
# there really shouldn't be any circular dependencies...
queue.append(InstallRequirement(dist_req, str(req)))
new_req = InstallRequirement(dist_req, str(req))
if new_req.name not in processed_reqs:
req_queue.append(new_req)

if errors:
exit(1)
Expand Down

0 comments on commit ec9d027

Please sign in to comment.