OESF Portables Forum

Everything Else => Zaurus Distro Support and Discussion => Distros, Development, and Model Specific Forums => Archived Forums => Sharp ROMs => Topic started by: andrewmaier on February 18, 2005, 10:52:28 am

Title: Pyqt Available For Cacko Rom
Post by: andrewmaier 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
Title: Pyqt Available For Cacko Rom
Post by: datajerk 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] (http://index.php?act=findpost&pid=67723\")

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]
Title: Pyqt Available For Cacko Rom
Post by: fpp 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 (https://www.oesf.org/forums/index.php?showforum=119)
Title: Pyqt Available For Cacko Rom
Post by: andrewmaier 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 (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
Title: Pyqt Available For Cacko Rom
Post by: soundwave106 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.
Title: Pyqt Available For Cacko Rom
Post by: fpp on February 19, 2005, 02:31:13 pm
...but read-only, can't add stuff to site-packages, so it's your choice.
Title: Pyqt Available For Cacko Rom
Post by: andrewmaier 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