'Determines whether or not a setup.py command exists.
Args:
command (str): The command to look for
Returns:
bool: True if the command is found, else False'

def _setup_command_available(self, command):

    kwargs = {'output': os.devnull, 'error': os.devnull, 'fail_on_error': False}
    python = inspect.getmodule(self).python
    setup = self.setup_file()
    python(setup, '--no-user-cfg', command, '--help', **kwargs)
    return (python.returncode == 0)
