a368267b6b4cf50138ba567f582409ed31bf5db9,src/python/pants/backend/python/tasks/pex_build_util.py,,dump_requirements,#Any#Any#Any#Any#Any#,103

Before Change


  :param platforms: A list of :class:`Platform`s to resolve requirements for.
                    Defaults to the platforms specified by PythonSetup.
  
  deduped_reqs = OrderedSet(reqs)
  find_links = OrderedSet()
  for req in deduped_reqs:
    log.debug("  Dumping requirement: {}".format(req))
    builder.add_requirement(req.requirement)
    if req.repository:
      find_links.add(req.repository)

  // Resolve the requirements into distributions.
  distributions = resolve_multi(interpreter, deduped_reqs, platforms, find_links)
  locations = set()
  for platform, dists in distributions.items():
    for dist in dists:
      if dist.location not in locations:
        log.debug("  Dumping distribution: .../{}".format(os.path.basename(dist.location)))
        builder.add_distribution(dist)
      locations.add(dist.location)


def resolve_multi(interpreter, requirements, platforms, find_links):

After Change


  PexBuilderWrapper(
    builder,
    PythonRepos.global_instance(),
    PythonSetup.global_instance(),
    log
  ).add_resolved_requirements(reqs, platforms)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: pantsbuild/pants
Commit Name: a368267b6b4cf50138ba567f582409ed31bf5db9
Time: 2018-10-26
Author: nh@baroquebobcat.com
File Name: src/python/pants/backend/python/tasks/pex_build_util.py
Class Name:
Method Name: dump_requirements


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: 6e04032e366a11409ae73fd11a8b6c36170f70be
Time: 2015-06-03
Author: john.sirois@gmail.com
File Name: src/python/pants/backend/jvm/tasks/scaladoc_gen.py
Class Name: ScaladocGen
Method Name: create_scaladoc_command