def variant_value(self, pkg, name, value):
    if (name == 'dev_path'):
        self._specs[pkg].variants.setdefault(name, spack.variant.SingleValuedVariant(name, value))
        return
    if (name == 'patches'):
        self._specs[pkg].variants.setdefault(name, spack.variant.MultiValuedVariant(name, value))
        return
    self._specs[pkg].update_variant_validate(name, value)
def variant_value(self, pkg, name, value):
    if (name == 'dev_path'):
        self._specs[pkg].variants.setdefault(name, spack.variant.SingleValuedVariant(name, value))
        return
    if (name == 'patches'):
        self._specs[pkg].variants.setdefault(name, spack.variant.MultiValuedVariant(name, value))
        return
    self._specs[pkg].update_variant_validate(name, value)