Skip to content

Commit

Permalink
Work around pex-tool/pex#509.
Browse files Browse the repository at this point in the history
  • Loading branch information
jsirois committed Jun 6, 2018
1 parent 8fa0bc9 commit 825255a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/python/pants/backend/python/tasks/select_interpreter.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ def _get_interpreter(interpreter_path_file):
with open(interpreter_path_file, 'r') as infile:
lines = infile.readlines()
binary = lines[0].strip()
extras = {}
interpreter = PythonInterpreter.from_binary(binary)
for line in lines[1:]:
dist_name, dist_version, location = line.strip().split('\t')
extras[(dist_name, dist_version)] = location
return PythonInterpreter.from_binary(binary, extras.values())
interpreter = interpreter.with_extra(dist_name, dist_version, location)
return interpreter

0 comments on commit 825255a

Please sign in to comment.