VectorLinux
April 17, 2014, 07:38:50 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Visit our home page for VL info. To search the old message board go to http://vectorlinux.com/forum1. The first VL forum is temporarily offline until we can find a host for it. Thanks for your patience.
 
Now powered by KnowledgeDex.
   Home   Help Search Login Register  
Please support VectorLinux!
Pages: [1]
  Print  
Author Topic: Packaging problem  (Read 1990 times)
roseway
Packager
Vectorite
****
Posts: 135



« on: August 04, 2007, 01: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



« Reply #1 on: August 04, 2007, 04:12:05 am »

Don't you use checkinstall?  Thought about writing a script?
Logged
stoichyu
Packager
Vectorite
****
Posts: 369



« Reply #2 on: August 04, 2007, 07: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:
#!/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:
checkinstall -L "checkinstall-python"

I hope it helps you. Cheesy
Logged

There's no place like ~.
VL 5.8 PentiumD 2.8Ghz Registered Linux User #432836
roseway
Packager
Vectorite
****
Posts: 135



« Reply #3 on: August 04, 2007, 07:18:18 am »

Thanks stoichyu, but that's the method I used (the forum link I gave above points at your quoted message Smiley ). 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: 2503



« Reply #4 on: August 04, 2007, 07: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:
#!/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



« Reply #5 on: August 04, 2007, 07:29:18 am »

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

Eric
roseway
Packager
Vectorite
****
Posts: 135



« Reply #6 on: August 05, 2007, 02:05:27 am »

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

Eric
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!