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

Before Change


                    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


  :param platforms: A list of :class:`Platform`s to resolve requirements for.
                    Defaults to the platforms specified by PythonSetup.
  
  deprecated("1.11.0.dev0",
    "This function has been moved onto the PexBuilderWrapper class.")
  PexBuilderWrapper(
    builder,
    PythonRepos.global_instance(),
    PythonSetup.global_instance(),
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: chartbeat-labs/textacy
Commit Name: 2b479cf658f843e9179fb591eb7e149be02a8039
Time: 2019-08-21
Author: burtdewilde@gmail.com
File Name: textacy/datasets/utils.py
Class Name:
Method Name: download_file


Project Name: chartbeat-labs/textacy
Commit Name: 44f318668f68ccf396da80fddcae44665aa455e4
Time: 2019-08-21
Author: burtdewilde@gmail.com
File Name: textacy/datasets/utils.py
Class Name:
Method Name: validate_set_member_filter