Skip to content

Commit

Permalink
Remove cruft
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Livingston committed Jan 30, 2018
1 parent 03bc4c0 commit a2116c4
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
from __future__ import (absolute_import, division, generators, nested_scopes, print_function,
unicode_literals, with_statement)

import os

from pex.interpreter import PythonIdentity
from twitter.common.collections import maybe_list

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
from pants.backend.python.targets.python_requirement_library import PythonRequirementLibrary
from pants.backend.python.targets.python_target import PythonTarget
from pants.backend.python.tasks2.gather_sources import GatherSources
from pants.backend.python.tasks2.pex_build_util import has_python_sources, is_local_python_dist
from pants.backend.python.tasks2.pex_build_util import has_python_sources
from pants.backend.python.tasks2.resolve_requirements import ResolveRequirements
from pants.backend.python.tasks2.resolve_requirements_task_base import ResolveRequirementsTaskBase
from pants.build_graph.address import Address
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,6 @@ def resolve_requirements(self, req_libs):
interpreter = self.context.products.get_data(PythonInterpreter)
path = os.path.realpath(os.path.join(self.workdir, str(interpreter.identity), target_set_id))

# Gather invalid targets so we can check whether the requirements pex should be
# rebuilt due to changes to PythonDistribution targets.
invalid_targets = [vt.target for vt in invalidation_check.invalid_vts]
# Note that we check for the existence of the directory, instead of for invalid_vts,
# to cover the empty case.
if not os.path.isdir(path):
Expand Down

0 comments on commit a2116c4

Please sign in to comment.