c15e9b0930ea6ce6eef5be7c6c00b9ee2b706865,src/python/pants/python/pex_build_util.py,PexBuilderWrapper,add_resolved_requirements,#PexBuilderWrapper#Any#Any#,183
Before Change
Defaults to the platforms specified by PythonSetup.
distributions = self._resolve_distributions_by_platform(reqs, platforms=platforms)
locations = set()
for platform, dists in distributions.items():
for dist in dists:
if dist.location not in locations:
self._log.debug(
f" Dumping distribution: .../{os.path.basename(dist.location)}"
)
self.add_distribution(dist)
locations.add(dist.location)
def _resolve_multi(self, interpreter, requirements, platforms, find_links):
Multi-platform dependency resolution for PEX files.
Returns a list of distributions that must be included in order to satisfy a set of requirements.
After Change
Defaults to the platforms specified by PythonSetup.
for resolved_dist in self.resolve_distributions(reqs, platforms=platforms):
requirement = resolved_dist.requirement
self._log.debug(f" Dumping requirement: {requirement}")
self._builder.add_requirement(str(requirement) )
distribution = resolved_dist.distribution
self._log.debug(
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 9
Instances Project Name: pantsbuild/pants
Commit Name: c15e9b0930ea6ce6eef5be7c6c00b9ee2b706865
Time: 2020-02-21
Author: john.sirois@gmail.com
File Name: src/python/pants/python/pex_build_util.py
Class Name: PexBuilderWrapper
Method Name: add_resolved_requirements
Project Name: pantsbuild/pants
Commit Name: 879df20df1df1b9cf16e29cb4a2836f4831f23d9
Time: 2019-12-08
Author: john.sirois@gmail.com
File Name: src/python/pants/backend/python/subsystems/pex_build_util.py
Class Name: PexBuilderWrapper
Method Name: add_resolved_requirements
Project Name: allenai/allennlp
Commit Name: 279f325950bf48582cd9fc499ade89155db5a5f0
Time: 2018-08-27
Author: kl2806@columbia.edu
File Name: allennlp/tests/data/dataset_readers/atis_test.py
Class Name: TestAtisReader
Method Name: test_atis_read_from_file
Project Name: pantsbuild/pants
Commit Name: c15e9b0930ea6ce6eef5be7c6c00b9ee2b706865
Time: 2020-02-21
Author: john.sirois@gmail.com
File Name: src/python/pants/python/pex_build_util.py
Class Name: PexBuilderWrapper
Method Name: add_resolved_requirements