(
self,
ignore_errors=False, # type: bool
max_parallel_jobs=None, # type: Optional[int]
local_project_directory_to_sdist=None, # type: Optional[Mapping[str, str]]
)
| 1424 | return direct_requirements, all_install_requests |
| 1425 | |
| 1426 | def build_distributions( |
| 1427 | self, |
| 1428 | ignore_errors=False, # type: bool |
| 1429 | max_parallel_jobs=None, # type: Optional[int] |
| 1430 | local_project_directory_to_sdist=None, # type: Optional[Mapping[str, str]] |
| 1431 | ): |
| 1432 | # type: (...) -> Iterable[ResolvedDistribution] |
| 1433 | |
| 1434 | if not any((self._build_requests, self._install_requests)): |
| 1435 | # Nothing to build or install. |
| 1436 | return () |
| 1437 | |
| 1438 | direct_requirements, all_install_requests = self._build_distributions( |
| 1439 | max_parallel_jobs=max_parallel_jobs, |
| 1440 | local_project_directory_to_sdist=local_project_directory_to_sdist, |
| 1441 | ) |
| 1442 | |
| 1443 | wheels = OrderedSet( |
| 1444 | ResolvedDistribution( |
| 1445 | target=install_request.target, |
| 1446 | fingerprinted_distribution=FingerprintedDistribution( |
| 1447 | distribution=Distribution.load(install_request.wheel_path), |
| 1448 | fingerprint=install_request.fingerprint, |
| 1449 | ), |
| 1450 | ) |
| 1451 | for install_request in all_install_requests |
| 1452 | ) # type: OrderedSet[ResolvedDistribution] |
| 1453 | |
| 1454 | if not ignore_errors: |
| 1455 | with TRACER.timed("Checking build"): |
| 1456 | check_resolve(self._dependency_configuration, wheels) |
| 1457 | return direct_requirements.adjust(wheels) |
| 1458 | |
| 1459 | def install_distributions( |
| 1460 | self, |
no test coverage detected