'Install a single source package.
If output is given it should be a file-like object and it
will receive a log of what happened.'

def installPackageOnly(self, output=None):

    if ('Post-install-command' in self._dict):
        return ('%s:    Installer    package    cannot    have    Post-install-command' % self.fullname())
    if ('Pre-install-command' in self._dict):
        if _cmd(output, '/tmp', self._dict['Pre-install-command']):
            return ('pre-install    %s:    running    "%s"    failed' % (self.fullname(), self._dict['Pre-install-command']))
    self.beforeInstall()
    installcmd = self._dict.get('Install-command')
    if installcmd:
        if ('%' in installcmd):
            installcmd = (installcmd % self.archiveFilename)
    else:
        installcmd = ('open    "%s"' % self.archiveFilename)
    if _cmd(output, '/tmp', installcmd):
        return ('%s:    install    command    failed    (use    verbose    for    details)' % self.fullname())
    return ('%s:    downloaded    and    opened.    Install    manually    and    restart    Package    Manager' % self.archiveFilename)
