pkgcore.package.conditionals module

conditional attributes on a package.

Changing them triggering regen of other attributes on the package instance.

pkgcore.package.conditionals.make_wrapper(wrapped_repo, configurable_attribute_name, attributes_to_wrap=(), kls_injections={})[source]
Parameters:
  • configurable_attribute_name – attribute name to add, and that is used for evaluating attributes_to_wrap

  • attributes_to_wrap – mapping of attr_name:callable for revaluating the pkg_instance, using the result instead of the wrapped pkgs attr.