def copy(self):
    other = Build(self.environment)
    for (k, v) in self.__dict__.items():
        if (k in ['compilers', 'cross_compilers']):
            continue
        if isinstance(v, (list, dict, set, OrderedDict)):
            other.__dict__[k] = v.copy()
        else:
            other.__dict__[k] = v
    return other
def copy(self):
    other = Build(self.environment)
    for (k, v) in self.__dict__.items():
        if (k in ['compilers', 'cross_compilers']):
            continue
        if isinstance(v, (list, dict, set, OrderedDict)):
            other.__dict__[k] = v.copy()
        else:
            other.__dict__[k] = v
    return other