from calculate.variables.datavars import ( Variable, Namespace, StringType, Calculate ) from .func import get_arch_machine, get_arch_gentoo with Namespace("arch"): Variable("machine", type=StringType, source=Calculate(get_arch_machine)) Variable("gentoo", type=StringType, source=Calculate(get_arch_gentoo, ".machine"))