Skip to content

Commit

Permalink
Fix failing test when editable is in reqs
Browse files Browse the repository at this point in the history
  • Loading branch information
davidovich committed Apr 4, 2017
1 parent 72fd71c commit 365f4e7
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions piptools/scripts/compile.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,6 @@ def cli(verbose, dry_run, pre, rebuild, find_links, index_url, extra_index_url,
# Check the given base set of constraints first
Resolver.check_constraints(constraints)

# The requirement objects are modified in-place so we need to save off the list of primary packages first
primary_packages = {key_from_req(ireq.req) for ireq in constraints if not ireq.constraint}

try:
resolver = Resolver(constraints, repository, prereleases=pre,
clear_caches=rebuild, allow_unsafe=allow_unsafe)
Expand Down Expand Up @@ -236,7 +233,7 @@ def cli(verbose, dry_run, pre, rebuild, find_links, index_url, extra_index_url,
format_control=repository.finder.format_control)
writer.write(results=results,
reverse_dependencies=reverse_dependencies,
primary_packages=primary_packages,
primary_packages={key_from_req(ireq.req) for ireq in constraints if not ireq.constraint},
markers={key_from_req(ireq.req): ireq.markers
for ireq in constraints if ireq.markers},
hashes=hashes)
Expand Down

0 comments on commit 365f4e7

Please sign in to comment.