'Deprecated API.'

def check_metadata(self):

    warn('distutils.command.register.check_metadata    is    deprecated,                                                            use    the    check    command    instead', PendingDeprecationWarning)
    check = self.distribution.get_command_obj('check')
    check.ensure_finalized()
    check.strict = self.strict
    check.restructuredtext = 1
    check.run()
