You are not logged in.

#1 2004-09-11 16:03:33

dk
Member
Registered: 2004-04-20
Posts: 106

Problem with a custom package written in python

I' trying to make a package for chruppy. Chruppy Info Center is a script written in Python that with help of root-tail displays detailed system information on the desktop.
http://developer.berlios.de/projects/chruppy/

Here is the PKGBUILD I used:

pkgname=chruppy
pkgver=0.0.13
pkgrel=1
pkgdesc="Chruppy Info Center is a script written in Python that with help of root-tail displays detailed system information on the desktop"
url="http://developer.berlios.de/project/showfiles.php?group_id=1300&release_id=1954"
license=
depends=('python')
makedepends=()
conflicts=()
replaces=()
backup=()
install=
source=(http://download.berlios.de/chruppy/chruppy-0.0.13.tar.gz)
md5sums=()

build() {
  cd $startdir/src/$pkgname-$pkgver
  python setup.py install --prefix=$startdir/pkg/usr

And the error when run from the command line:

[dk@myfun ~]$ chruppy
Traceback (most recent call last):
  File "/usr/bin/chruppy", line 3, in ?
    from chruppy.chruppy import *
  File "/var/abs/local/chruppy/pkg/usr/lib/python2.3/site-packages/chruppy/chruppy.py", line 202, in ?
    time.sleep(settings['delay'])

Why is it using files in

/var/abs/local/chruppy/pkg/usr/lib/python2.3/site-packages/chruppy/

I checked and all the same flies are installed in

/usr/lib/python2.3/site-packages/chruppy/

I'm guessing it's an error in my PKGBUILD

Offline

#2 2004-09-11 16:10:45

Xentac
Forum Fellow
From: Victoria, BC
Registered: 2003-01-17
Posts: 1,797
Website

Re: Problem with a custom package written in python

Check some PKGBUILDs that do things similar (using distutils): namcap, etc.

You need --root not --prefix.


I have discovered that all of mans unhappiness derives from only one source, not being able to sit quietly in a room
- Blaise Pascal

Offline

Board footer

Powered by FluxBB