Author Topic: Pyqt Available For Cacko Rom  (Read 3909 times)

andrewmaier

  • Newbie
  • *
  • Posts: 26
    • View Profile
    • http://www.andrew.maier.name
Pyqt Available For Cacko Rom
« on: February 18, 2005, 10:52:28 am »
Hi,

no idea if I should post it here or in the developer forums, but:

does anyone know of an ipkg (compatible with python ipks on the cacko feed) of pyqt, the python bindings for qt? It would be really nice to have them available for writing some gui code which can run on the Z.

Andrew

datajerk

  • Full Member
  • ***
  • Posts: 219
    • View Profile
    • http://
Pyqt Available For Cacko Rom
« Reply #1 on: February 18, 2005, 11:27:57 am »
Quote
Hi,

no idea if I should post it here or in the developer forums, but:

does anyone know of an ipkg (compatible with python ipks on the cacko feed) of pyqt, the python bindings for qt? It would be really nice to have them available for writing some gui code which can run on the Z.

Andrew
[div align=\"right\"][{POST_SNAPBACK}][/a][/div]

I got them from here (http://www.vanille.de/projects/python.spy) and archived them here (http://sense.net/zc/python/).

I cannot recall if I had to convert the .ipk format.  If so you can use this script:

Code: [Select]
#!/bin/bash

FILE=$1
EXT=$(echo $FILE | awk -F. '{print $NF}')
PACKAGE=$(echo $FILE | sed "s/.$EXT\$//")

if [ ! -r "$FILE" ]
then
        echo "cannot open: $FILE"
        exit 1
fi

set -x

md5sum $FILE
cp -f $FILE ${PACKAGE}.ar
mkdir -p work
cd work
ar x ../${PACKAGE}.ar
tar cvf - . | gzip -9 -c >../${PACKAGE}.ipk
cd ..
rm -rf work

md5sum ${PACKAGE}.ar ${PACKAGE}.ipk

After installing use as a base for PyQT apps:

[a href=\"http://www.brad.emerika.com/zaurus/index.php]http://www.brad.emerika.com/zaurus/index.php[/url]

fpp

  • Full Member
  • ***
  • Posts: 187
    • View Profile
    • http://
Pyqt Available For Cacko Rom
« Reply #2 on: February 18, 2005, 03:30:39 pm »
There's an easier way if you have 50 free megs or so on your SD/CF card:

https://www.oesf.org/forums/index.php?showforum=119

andrewmaier

  • Newbie
  • *
  • Posts: 26
    • View Profile
    • http://www.andrew.maier.name
Pyqt Available For Cacko Rom
« Reply #3 on: February 19, 2005, 12:35:08 pm »
Quote
There's an easier way if you have 50 free megs or so on your SD/CF card:

https://www.oesf.org/forums/index.php?showforum=119
[div align=\"right\"][a href=\"index.php?act=findpost&pid=67782\"][{POST_SNAPBACK}][/a][/div]

I have seen this, but isn't that a bit of an overkill to install 50 Megs, if you want to run a few scripts?

Andrew

soundwave106

  • Full Member
  • ***
  • Posts: 108
    • View Profile
Pyqt Available For Cacko Rom
« Reply #4 on: February 19, 2005, 02:18:38 pm »
The latest version is actually only about 8.6 megs, which may be a bit less overkill.

fpp

  • Full Member
  • ***
  • Posts: 187
    • View Profile
    • http://
Pyqt Available For Cacko Rom
« Reply #5 on: February 19, 2005, 02:31:13 pm »
...but read-only, can't add stuff to site-packages, so it's your choice.

andrewmaier

  • Newbie
  • *
  • Posts: 26
    • View Profile
    • http://www.andrew.maier.name
Pyqt Available For Cacko Rom
« Reply #6 on: February 20, 2005, 08:24:47 am »
Quote
The latest version is actually only about 8.6 megs, which may be a bit less overkill.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=67875\"][{POST_SNAPBACK}][/a][/div]

I stand corrected, but still the point is if you write an app in python, you should be able to make dependencies which ipkg can resolve and install only those things needed.  If I have to install a complete image just to run a relatively small script, I think this is overkill

For a development image, like the dev-img I agree things are different and the image approach is probably correct.


Andrew