Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removed resolover_kwargs from build_pex().
Browse files Browse the repository at this point in the history
kwargs are provided directly to ``resolve_multi()``. ``resolve_multi()``
handles cache_dir conditional via ``resolve()``.
jjjake authored and mzdaniel committed May 22, 2016

Verified

This commit was signed with the committer’s verified signature.
Exirel Florian Strzelecki
1 parent 4a68e42 commit b8a10ba
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pex/bin/pex.py
Original file line number Diff line number Diff line change
@@ -487,12 +487,10 @@ def build_pex(args, options, resolver_option_builder):
for requirements_txt in options.requirement_files:
resolvables.extend(requirements_from_file(requirements_txt, resolver_option_builder))

resolver_kwargs = dict(interpreters=interpreters, platforms=options.platform,
cache=options.cache_dir, cache_ttl=options.cache_ttl)

with TRACER.timed('Resolving distributions'):
try:
resolveds = resolve_multi(resolvables, **resolver_kwargs)
resolveds = resolve_multi(resolvables, interpreters=interpreters, platforms=options.platform,
cache=options.cache_dir, cache_ttl=options.cache_ttl)
except Unsatisfiable as e:
die(e)

0 comments on commit b8a10ba

Please sign in to comment.