1a4dcfcf867af57839ba8f7f497bfbadf6e17927,src/python/pants/backend/python/tasks/gather_sources.py,GatherSources,execute,#GatherSources#,43

Before Change



    with self.invalidated(targets) as invalidation_check:
      pex = self._get_pex_for_versioned_targets(interpreter, invalidation_check.all_vts)
      self.context.products.register_data(self.PYTHON_SOURCES, pex)

  def _get_pex_for_versioned_targets(self, interpreter, versioned_targets):
    if versioned_targets:
      target_set_id = VersionedTargetSet.from_versioned_targets(versioned_targets).cache_key.hash

After Change


  def execute(self):
    interpreter = self.context.products.get_data(PythonInterpreter)

    pex_by_target_base = OrderedDict()  // Preserve ~PYTHONPATH ordering over pexes.
    for target_base, targets in self._iter_targets_by_base():
      with self.invalidated(targets) as invalidation_check:
        pex = self._get_pex_for_versioned_targets(interpreter, invalidation_check.all_vts)
        pex_by_target_base[target_base] = pex
    self.context.products.register_data(self.PythonSources, self.PythonSources(pex_by_target_base))

  def _iter_targets_by_base(self):
    // N.B: Files and Resources targets belong with the consuming (dependee) targets so that those
    // targets can be ensured of access to the files in their PEX chroot. This means a given Files
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: pantsbuild/pants
Commit Name: 1a4dcfcf867af57839ba8f7f497bfbadf6e17927
Time: 2018-01-28
Author: john.sirois@gmail.com
File Name: src/python/pants/backend/python/tasks/gather_sources.py
Class Name: GatherSources
Method Name: execute


Project Name: pantsbuild/pants
Commit Name: 78a526959260d7ce561b9ead625acb4837f900d0
Time: 2018-12-14
Author: john.sirois@gmail.com
File Name: src/python/pants/backend/python/tasks/python_tool_prep_base.py
Class Name: PythonToolPrepBase
Method Name: execute


Project Name: pantsbuild/pants
Commit Name: 38ccf42c49f31e26462a266e8c63fb7875bcec14
Time: 2018-10-08
Author: john.sirois@gmail.com
File Name: src/python/pants/backend/python/tasks/pytest_prep.py
Class Name: PytestPrep
Method Name: execute