'Set final values for all the options on the Distribution
instance, analogous to the .finalize_options() method of Command
objects.'

def finalize_options(self):

    for attr in ('keywords', 'platforms'):
        value = getattr(self.metadata, attr)
        if (value is None):
            continue
        if isinstance(value, str):
            value = [elm.strip() for elm in value.split(',')]
            setattr(self.metadata, attr, value)
    return
