You are not logged in.

#1 2009-04-19 12:21:31

EnvoyRising
Member
Registered: 2008-08-08
Posts: 118

pyqt-doc

I'm trying to make a pyqt-doc PKGBUILD, but am having trouble making a symbolic link from /usr/bin/qtdemo.py to the qtdemo.py script. Here is the PKGBUILD:

# $Id: PKGBUILD 29247 2009-03-07 11:58:41Z pierre $
# Maintainer: Vinay S Shastry (vinayshastry@gmail.com)

pkgname=pyqt-doc
pkgver=4.4.4
pkgrel=1
pkgdesc='PyQt documentation.'
arch=('i686' 'x86_64')
url='http://www.riverbankcomputing.co.uk/software/pyqt/intro'
_pkgfqn="PyQt-x11-gpl-${pkgver}"
source=("http://www.riverbankcomputing.co.uk/static/Downloads/PyQt4/${_pkgfqn}.tar.gz")
license=('GPL3')
options=('docs')
depends=('pyqt')
md5sums=('4bd346d56d10452e47ac71e2cbe04229')

build() {
    cd ${srcdir}/${_pkgfqn}
    install -d ${pkgdir}/usr/share/doc/pyqt
    cp -r doc/* ${pkgdir}/usr/share/doc/pyqt
    cp -r examples ${pkgdir}/usr/share/doc/pyqt
    cd ${pkgdir}
    install -d ${pkgdir}/usr/bin/
    ln -s /usr/share/doc/pyqt/examples/tools/qtdemo/qtdemo.py ${pkgdir}/usr/bin/qtdemo.py
}

If I run qtdemo.py from the example directory, it executes fine, but running via the symbolic link throws this:

Traceback (most recent call last):
  File "/usr/bin/qtdemo.py", line 46, in <module>
    if not launcher.setup():
  File "/usr/share/doc/pyqt/examples/tools/qtdemo/launcher.py", line 175, in setup
    mainDescription = self.categories['[main]']['description']
KeyError: 'description'

Is there a specific syntax I should be following to link to python scripts?

Offline

Board footer

Powered by FluxBB