Lines Matching defs:variant
48 import pkg.variant as variant
295 # manifest, indexed by unique key and variant combination
439 emit_variants = "pkg.variant" not in self
451 # both and so will not be tagged with variant.
453 if name[:8] == "variant.":
456 # List of possible facets and under what variant combinations
460 # Unique (facet, value) (variant, value) combinations.
467 if attrs["name"][:12] == "pkg.variant":
475 if attr[:8] == "variant.":
482 # Facet applicable to this particular variant
502 # declared at package level. Omit the "variant." prefix
506 name="pkg.variant",
509 # Emit a set action for every variant used with possible values
512 # merge_facets needs the variant values sorted and this
513 # is desirable when generating the variant attr anyway.
523 # For each variant combination, remove unvarianted
532 # If all possible variant combinations supported by the
538 # Determine unique set of variant combinations
548 # For each unique variant combination, determine
549 # if the cartesian product of all variant values
552 # combination is ((variant.arch,)) and the
554 # (variant.arch, i386) and (variant.arch, sparc)
555 # must exist. This code assumes variant values
556 # for each variant are already sorted.
577 # used by a single variant (think i386-only or
585 # all variant combinations; move the
612 # That way if there are also no variant-specific facets,
619 # Now emit a pkg.facet action for each variant
628 # variant.archi386variant.debug.osnetTrue...
647 # for each facet/variant combination.
664 # faceted/variant without payload.
718 # variant)
776 # pkg.facet.X variant-specific action.
791 # variant combination that's
806 (variant, [values]). Where 'variant' is the variant attribute
807 name (e.g. 'variant.arch') and '[values]' is a list of the
808 variant values supported by this package. Variants returned are
817 variants = self["pkg.variant"]
824 for v in misc.yield_matching("variant.", variants,
830 # pkg.variant action containing the list of variants.
835 if aname == "pkg.variant":
842 # Ensure variant entries exist (debug
844 variants["variant.{0}".format(v)]
845 elif aname[:8] == "variant.":
854 for v in misc.yield_matching("variant.", variants, patterns):
1101 # variants and facet excludes were or that variant, facet and
1128 "variant.opensolaris.zone" not in attrs:
1129 attrs["variant.opensolaris.zone"] = \
1175 # Ensure facet and variant attributes are always lists.
1189 # one unique variant combination that's
1193 elif keyvalue == "pkg.variant":
1200 "variant.{0}".format(v)
1204 elif keyvalue[:8] == "variant.":
1395 """Return a dictionary mapping variant tags to their values."""
1396 return variant.VariantCombinationTemplate(dict((
1399 if name.startswith("variant.")
1465 # actions; only variant filtering. This is ugly, but
1466 # our current variant/facet filtering system doesn't
1501 # setting the variant first), facets
1865 (variant, [values]). Where 'variant' is the variant attribute
1866 name (e.g. 'variant.arch') and '[values]' is a list of the
1867 variant values supported by this package. Variants returned are