def _get_build_dependencies_for_distribution( self, distribution: SourceDistribution) -> RequirementSet: self.source_distributions[distribution.name] = distribution build_dependencies = distribution.build_dependencies( self.target_platform).filter(lambda requirement: requirement.name( ) not in [distribution.name]) self.additional_build_dependencies[ distribution.name] += build_dependencies return build_dependencies
def _get_build_dependencies_for_distribution( self, distribution: SourceDistribution) -> RequirementSet: self.source_distributions[distribution.name] = distribution build_dependencies = distribution.build_dependencies( self.target_platform).filter(lambda requirement: requirement.name( ) not in [distribution.name]) for dependency in build_dependencies: self._dependency_graph.set_buildtime_dependency( dependent=distribution.to_loose_requirement(), dependency=dependency) return build_dependencies
def test_that_flit_build_dependencies_contains_requests( flit_distribution: SourceDistribution, current_platform: TargetPlatform): assert "requests" in flit_distribution.build_dependencies(current_platform)