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: Packaging problem  (Read 2467 times)

roseway

  • Packager
  • Vectorite
  • ****
  • Posts: 135
Packaging problem
« on: August 04, 2007, 02:52:16 am »

I'm struggling to package Numeric Python, which is needed to support GCompris. I'm using the method described by stoichyu at http://www.vectorlinux.com/forum2/index.php?topic=1380.msg10213#msg10213 and it appears to work and produces an installable package, but the package is very small and only contains the docs. The source is at http://sourceforge.net/project/showfiles.php?group_id=1369&package_id=1351 and this source is fine if it's installed manually. Can anyone help me out?
Logged
Eric

exeterdad

  • Packager
  • Vectorian
  • ****
  • Posts: 2046
Re: Packaging problem
« Reply #1 on: August 04, 2007, 05:12:05 am »

Don't you use checkinstall?  Thought about writing a script?
Logged

stoichyu

  • Packager
  • Vectorite
  • ****
  • Posts: 369
Re: Packaging problem
« Reply #2 on: August 04, 2007, 08:09:16 am »

From my post in this thread: http://www.vectorlinux.com/forum2/index.php?topic=1380.0
Quote
Edit: The one I first posted didn't work quite right.
I made a script that checkinstall can use so checkinstall can work with python packages.

checkinstall-python:
Code: [Select]
#!/bin/sh
python setup.py bdist
cd dist
tar xvf *.tar.gz -C/
cd ..
rm dist -r


then make it executable.

To use, when building python packages you can now simply use
Code: [Select]
checkinstall -L "checkinstall-python"

I hope it helps you. :D
Logged
There's no place like ~.
VL 5.8 PentiumD 2.8Ghz Registered Linux User #432836

roseway

  • Packager
  • Vectorite
  • ****
  • Posts: 135
Re: Packaging problem
« Reply #3 on: August 04, 2007, 08:18:18 am »

Thanks stoichyu, but that's the method I used (the forum link I gave above points at your quoted message :) ). I've tried making a script from the build and install commands described in the source docs, but that fails with a 'file not found' error, even though the commands work when used manually.
Logged
Eric

uelsk8s

  • Administrator
  • Vectorian
  • *****
  • Posts: 2504
Re: Packaging problem
« Reply #4 on: August 04, 2007, 08:19:41 am »

here is a script I made (with help from hanu) that finds all newly installed files.
install Numeric Python then run the script with Numeric as an argument and it will create a Numeric folder in your home with all the installed files. You may need to clean any extra files from  it like logs and such that were created around the time Numeric was installed

Code: [Select]
#!/bin/bash
 
 pkg=$1
 tmp="$HOME/$pkg"
 dirs=`ls /|grep -v dev|grep -v proc|grep -v sys|grep -v mnt|grep -v home|gre    p -v root`
 if [ "x$pkg" = "x" ];then
  echo "usage $0 packagename"
  exit 1
 fi
 cd $HOME
 mkdir -p $tmp
 rm pkglist 2>/dev/null
 for i in $dirs;do
  find /$i -cmin -5 -not -type d >>pkglist
 done
 tar cvzTf pkglist $1.tgz
 cd $tmp
 explodepkg ../$1.tgz
 rm ../$1.tgz

Uelsk8s
Logged

roseway

  • Packager
  • Vectorite
  • ****
  • Posts: 135
Re: Packaging problem
« Reply #5 on: August 04, 2007, 08:29:18 am »

Thanks Uelsk8s, I'll give it a try.
Logged
Eric

roseway

  • Packager
  • Vectorite
  • ****
  • Posts: 135
Re: Packaging problem
« Reply #6 on: August 05, 2007, 03:05:27 am »

Thanks for the help guys. I've now successfully built the package, and learnt a bit more about packaging as well. :)
Logged
Eric