VectorLinux

Cooking up the Treats => New Package Requests => Topic started by: blurymind on February 15, 2009, 05:26:13 am

Title: numpy -vl60
Post by: blurymind on February 15, 2009, 05:26:13 am
i need it to build some packages,but i dont know how to package it with a build script.. (python)
http://sourceforge.net/projects/numpy/

Title: Re: numpy -vl60
Post by: Windozer on February 15, 2009, 03:48:57 pm
Blurrymind,

do you mean package numpy.py for python to install, or go lower level and compile numpy.c (etc) and then have python install it from a package?

I'm interested in this because I use numpy but have yet to put it on my VL boxes.
thx
- Howard
Title: Re: numpy -vl60
Post by: caitlyn on February 15, 2009, 04:09:51 pm
blurymind:  Have you tried sbbuilder with the --python option?  It creates a build script for python packages that use setup.py
Title: Re: numpy -vl60
Post by: blurymind on February 16, 2009, 01:30:27 am
blurymind:  Have you tried sbbuilder with the --python option?  It creates a build script for python packages that use setup.py
thank you. I will try it.Is that the latest version?
Title: Re: numpy -vl60
Post by: blurymind on February 16, 2009, 03:11:39 am
ok , i built the packages..But i noticed something- for some of the gui python applications- requiredbuilder doesnt find all their deps (python libraries- PIL (python imaging) ) is not added to slack-required. How do i tell the script to add it?
Title: Re: numpy -vl60
Post by: caitlyn on February 16, 2009, 06:17:08 am
Do we have a package for PIL?  I don't see that as a separate package in the repos whih is probably why it's not listed.  It may be included in another package that does show up in your SlackBuild.

In any case, for general reference:

Basically you can add to the slack-required file the same way you build the slack-desc file, except you use the >> operand to append to an existing file:

Code: [Select]
cat > $RELEASEDIR/slack-required << EOF
<package name>= <version>-<arch>-<build>

EOF

So... if I wanted to add puthon itself as a dependency the code would read:

Code: [Select]
cat > $RELEASEDIR/slack-required << EOF
python >= 2.5.2-i486-1

EOF

Note that our python package is borrowed from Slackware.  It is more common that a build will be something like 1vl60.  Also note that you can have as many lines for dependencies as you like after the first reference to EOF.
Title: Re: numpy -vl60
Post by: blurymind on February 16, 2009, 06:45:17 am
Do we have a package for PIL?  I don't see that as a separate package in the repos whih is probably why it's not listed.  It may be included in another package that does show up in your SlackBuild.

In any case, for general reference:

Basically you can add to the slack-required file the same way you build the slack-desc file, except you use the >> operand to append to an existing file:

Code: [Select]
cat > $RELEASEDIR/slack-required << EOF
<package name>= <version>-<arch>-<build>

EOF



So... if I wanted to add puthon itself as a dependency the code would read:

Code: [Select]
cat > $RELEASEDIR/slack-required << EOF
python >= 2.5.2-i486-1

EOF

Note that our python package is borrowed from Slackware.  It is more common that a build will be something like 1vl60.  Also note that you can have as many lines for dependencies as you like after the first reference to EOF.


Thanks. Basically,i need to add the lines manually,in order to make a proper script for some applications that use python's imaging library (i uploaded PIL to my contrib). I remember that we had the same problem with some packages on vl5.8 or even before that- they didnt have PIL in their slack-required and thats why the user had to figure it out and get pil,after installing and running them in the terminal. Now that its possible to make the script add the pil line,packages that need it,will drag it as a dependency.
Title: Re: numpy -vl60
Post by: rbistolfi on February 16, 2009, 07:12:08 am
requiredbuilder reads the ADD and EXCLUDE environment variables for adding or excluding dependencies. Then you can call requiredbuilder like this:

Code: [Select]
ADD="pil >= 1.0-i586-1vl60" requiredbuilder ...
If you wanna test some stuff, I have added a --add and --exclude flags to the latest sbbuilder http://drop.io/k3woxwp

BTW, requiredbuilder will pick any binary dep, and uses some heuristic to add python, perl, etc as deps of scripts or apps written in those languages, but in general, if a package has a non binary dep you have to add it manually.
Title: Re: numpy -vl60
Post by: blurymind on February 16, 2009, 07:17:43 am
requiredbuilder reads the ADD and EXCLUDE environment variables for adding or excluding dependencies. Then you can call requiredbuilder like this:

Code: [Select]
ADD="pil >= 1.0-i586-1vl60" requiredbuilder ...
If you wanna test some stuff, I have added a --add and --exclude flags to the latest sbbuilder http://drop.io/k3woxwp

BTW, requiredbuilder will pick any binary dep, and uses some heuristic to add python, perl, etc as deps of scripts or apps written in those languages, but in general, if a package has a non binary dep you have to add it manually.

This is very nice. It works, but then it adds only the deps that i have inputed. It would be nice if it adds the rest that required builder has found