VectorLinux

Please login or register.

Login with username, password and session length
Advanced search  

News:

Visit our home page for VL info. For support and documentation, visit the Vector Linux Knowledge Center or search the Knowledge Center and this Forum using the search box above.

Author Topic: numpy -vl60  (Read 2097 times)

blurymind

  • Packager
  • Vectorian
  • ****
  • Posts: 1082
numpy -vl60
« 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/

« Last Edit: February 15, 2009, 07:30:43 am by blurymind »
Logged
status: playing around with new tablet and learning to 3d :p
google page :  http://blurymind.googlepages.com
DA PAGE :  http://www.blurymind.deviantart.com/

Windozer

  • Vectorite
  • ***
  • Posts: 386
  • Have Vector Linux, Will Travel.
Re: numpy -vl60
« Reply #1 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
Logged
483,617th Registered Linux Snoozer

caitlyn

  • Packager
  • Vectorian
  • ****
  • Posts: 2879
    • The Linux Works
Re: numpy -vl60
« Reply #2 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
Logged
eMachines EL-1300G desktop, 1.6GHz AMD Athlon 2650e CPU, 4GB RAM, nVidia GeForce 6150 SE video
CentOS 6.5 (will try VL64-7.1 soon)

Toshiba Satellite A135-S4727,  Intel Pentium T2080 / 1.73 GHz, 2GB RAM, Intel GMA 950

HP Mini 110 netbook, 1.6GHz Intel Atom CPU, 2GB RAM, Intel 950 video, VL 7.1

blurymind

  • Packager
  • Vectorian
  • ****
  • Posts: 1082
Re: numpy -vl60
« Reply #3 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?
Logged
status: playing around with new tablet and learning to 3d :p
google page :  http://blurymind.googlepages.com
DA PAGE :  http://www.blurymind.deviantart.com/

blurymind

  • Packager
  • Vectorian
  • ****
  • Posts: 1082
Re: numpy -vl60
« Reply #4 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?
Logged
status: playing around with new tablet and learning to 3d :p
google page :  http://blurymind.googlepages.com
DA PAGE :  http://www.blurymind.deviantart.com/

caitlyn

  • Packager
  • Vectorian
  • ****
  • Posts: 2879
    • The Linux Works
Re: numpy -vl60
« Reply #5 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.
Logged
eMachines EL-1300G desktop, 1.6GHz AMD Athlon 2650e CPU, 4GB RAM, nVidia GeForce 6150 SE video
CentOS 6.5 (will try VL64-7.1 soon)

Toshiba Satellite A135-S4727,  Intel Pentium T2080 / 1.73 GHz, 2GB RAM, Intel GMA 950

HP Mini 110 netbook, 1.6GHz Intel Atom CPU, 2GB RAM, Intel 950 video, VL 7.1

blurymind

  • Packager
  • Vectorian
  • ****
  • Posts: 1082
Re: numpy -vl60
« Reply #6 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.
Logged
status: playing around with new tablet and learning to 3d :p
google page :  http://blurymind.googlepages.com
DA PAGE :  http://www.blurymind.deviantart.com/

rbistolfi

  • Packager
  • Vectorian
  • ****
  • Posts: 2321
Re: numpy -vl60
« Reply #7 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.
« Last Edit: February 16, 2009, 07:14:45 am by rbistolfi »
Logged
"There is a concept which corrupts and upsets all others. I refer not to Evil, whose limited realm is that of ethics; I refer to the infinite."
Jorge Luis Borges, Avatars of the Tortoise.

--
Jumalauta!!

blurymind

  • Packager
  • Vectorian
  • ****
  • Posts: 1082
Re: numpy -vl60
« Reply #8 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
« Last Edit: February 16, 2009, 07:29:45 am by blurymind »
Logged
status: playing around with new tablet and learning to 3d :p
google page :  http://blurymind.googlepages.com
DA PAGE :  http://www.blurymind.deviantart.com/