You are not logged in.

#1 2005-07-17 06:56:26

hotsock
Member
Registered: 2005-06-24
Posts: 21

building software that has an install script *solved

I'm trying to make a package for a program that doesn't use the typical ./configure make make install process, instead it has a python script.  I've read the README and it says the command needed to install the software is

python setup.py install

so my question is, under the build section of PKGBUILD what would it say? 

I've tried

build() {
  cd $startdir/src/$pkgname-$pkgver
  python setup.py install
}

but with no success, and i can't think of what else to try.

if possible, explain the build process to me more in depth, doesn't it just execute commands?  so i'm not sure why this wouldn't work

thank you,

reid

Offline

#2 2005-07-17 07:00:01

T-Dawg
Forum Fellow
From: Charlotte, NC
Registered: 2005-01-29
Posts: 2,736

Re: building software that has an install script *solved

have you tried

 python setup.py install --prefix=$startdir/pkg/usr

Offline

#3 2005-07-17 07:02:13

hotsock
Member
Registered: 2005-06-24
Posts: 21

Re: building software that has an install script *solved

haha.  nevermind i guess i just have to include all the files built by the python script. ahhh HA

but i'll try that first.  i figured the prefix option was only for the make process.

thanks.

yea, that worked thanks penguin...

it's a learning process for me.

Offline

#4 2005-07-17 16:38:22

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: building software that has an install script *solved

one thing you can do is look at PKGBUILDs for existing Python applications. You can find some in abs or aur.

This doesn't just apply to python of course, you can do the same for Java apps, precompiled binaries, packages that need to access a version control repository, etc.

Dusty

Offline

#5 2005-07-17 18:06:53

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: building software that has an install script *solved

Penguin wrote:

have you tried

 python setup.py install --prefix=$startdir/pkg/usr

I always use --root= for python distutils packages

Offline

Board footer

Powered by FluxBB