pkgcore.restrictions.required_use module

pkgcore.restrictions.required_use.find_constraint_satisfaction(restricts: base, iuse: set[str], force_true=(), force_false=(), prefer_true=()) Iterator[dict[str, bool]][source]

Return iterator for use flags combination satisfying REQUIRED_USE

Parameters:
  • restricts – Parsed restricts of REQUIRED_USE

  • iuse – Known IUSE for the restricts. Any USE flag encountered not in this set, will be forced to a False value.

  • force_true – USE flags which will be force to only True value.

  • force_false – USE flags which will be force to only False value.

  • prefer_true – USE flags which will have a preference to True value. All other flags, which aren’t forced, will have a preference to False.

Returns:

Iterator returning satisfying use flags combination, of USE flag and it’s state.