Python with Bindings for Puppy 4 / Wine Doors Project

A home for all kinds of Puppy related projects
Post Reply
Message
Author
User avatar
stevenbinion
Posts: 179
Joined: Fri 24 Aug 2007, 14:29
Location: Pittsburgh, PA - United States
Contact:

Python with Bindings for Puppy 4 / Wine Doors Project

#1 Post by stevenbinion »

I found a great Python bundle on the forums here that came with python-cairo, python-gtk and python-gobject. and it's covered my needs for some time now. but I've outgrown this as I need more bindings added to python.

I need to add the following bindings but don't know how, as once I get the packages and add them to Python the don't show up in the modules listing.

python-gnome2-desktop
python-rsvg
python-dbus
python-xml2
python-glade2

I've learned a lot about compiling, creating packages and squash files. now I just need some help with python bindings.
Last edited by stevenbinion on Wed 04 Jun 2008, 01:02, edited 3 times in total.
[b][[url=http://www.tekwolf.net]Home of Wolf Pup Linux[/url]][/b]

User avatar
tombh
Posts: 422
Joined: Fri 12 Jan 2007, 12:27
Location: Bristol, UK
Contact:

#2 Post by tombh »

Sorry I didn't reply sooner to your thread but I hadn't seen it.

It looks like you may have more Python experience than me. I've never compiled any Python stuff myself -- that Python bundle was just a collection that I simply put together in a single dotpet.

Though one thing I suspect is that there might be a problem if these extra bindings are compiled in Puppy 4 but you're adding to the Python bundle that was compiled in Puppy 3.

Also it might be helpful to know what your project is?
[url=http://www.tombh.co.uk/colour_memories/contribute.php]Colour-Memories Database[/url]

User avatar
stevenbinion
Posts: 179
Joined: Fri 24 Aug 2007, 14:29
Location: Pittsburgh, PA - United States
Contact:

#3 Post by stevenbinion »

tombh wrote:Sorry I didn't reply sooner to your thread but I hadn't seen it.

It looks like you may have more Python experience than me. I've never compiled any Python stuff myself -- that Python bundle was just a collection that I simply put together in a single dotpet.

Though one thing I suspect is that there might be a problem if these extra bindings are compiled in Puppy 4 but you're adding to the Python bundle that was compiled in Puppy 3.

Also it might be helpful to know what your project is?
Thanks Tombh,

I haven't sit idle in any case. I went ahead and found several of the source package and so far have compiled and packaged the following.

python-2.5.2
python-cairo-1.4.12
python-gobject-2.14.2
python-gtk-2.12.1
python-dbus-0.82.4 // optional but seems to be in demand a lot.
python-orbit-2.14.3

These packages have been compiled, built, installed and show up in the modules list, however I'm not quite sure how to test them. they are available in PET & SFS I know it's a lot of SFS files but I plane to use the sfs combiner on whatever combination I decide on using. HERE

The following packages I couldn't find the source packages for and gave it a shot at building the pets from debian binaries. They install with no dependencie errors however I can not find them in Python's modules list. and again not quite up on Python enough to know how to test them.

python-pyrex-0.9.4.1 // optional but would be beneficial to performance
python-glade2-2.8.6
python-central-0.5.12 // optional, but required by python-pyrex
python-xml2-2.6.27

These are also available HERE if anyone could look at the packages and see if the file structure looks like it should, just don't download them expecting them to work as is.

Incase anyone is wondering why I am working on such a large python bundle. I'm working on making Wine-Doors available for Puppy if anyone has been to http://wine-doors.org you've seen the demanding dependency list they have. and the python-gnome2-desktop is even more demanding in dependencies then the python bundle.
[b][[url=http://www.tekwolf.net]Home of Wolf Pup Linux[/url]][/b]

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#4 Post by Lobster »

m m m . . .
I was very interested in Python and found that when I copied code from tutorial examples, they did not work with the Python add on for Puppy.
Not good. Even worse if doing real development work.

The full python package (with the full libraries) is 30MB last time I looked.
A first stage is getting a full Python with all its coils . . .
Is there any mileage in using a Slackware module?

Who can help? :)
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
stevenbinion
Posts: 179
Joined: Fri 24 Aug 2007, 14:29
Location: Pittsburgh, PA - United States
Contact:

#5 Post by stevenbinion »

Lobster wrote:m m m . . .
I was very interested in Python and found that when I copied code from tutorial examples, they did not work with the Python add on for Puppy.
Not good. Even worse if doing real development work.

The full python package (with the full libraries) is 30MB last time I looked.
A first stage is getting a full Python with all its coils . . .
Is there any mileage in using a Slackware module?

Who can help? :)
As far as full python package? I downloaded the source code from http://www.python.org for python 2.5.2 I compiled it and made a pet, I didn't cut anything from it.

and that I'm aware of I didn't miss any dependency packages.
[b][[url=http://www.tekwolf.net]Home of Wolf Pup Linux[/url]][/b]

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#6 Post by Lobster »

OK - Barry is not a big fan of Python
so it might be worth contacting MU or ttuxxx

- Wine is now at RC for version 1
So your efforts with Winedoor - have a lot of potential

+ all the Windows themes in Ezpup
add MS Office (from a verified capitalist organisation) and a lot
of people would be very happy . . . :)
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
stevenbinion
Posts: 179
Joined: Fri 24 Aug 2007, 14:29
Location: Pittsburgh, PA - United States
Contact:

#7 Post by stevenbinion »

Lobster wrote:OK - Barry is not a big fan of Python
so it might be worth contacting MU or ttuxxx

- Wine is now at RC for version 1
So your efforts with Winedoor - have a lot of potential

+ all the Windows themes in Ezpup
add MS Office (from a verified capitalist organisation) and a lot
of people would be very happy . . . :)
Actually WINE is now RC3. I'll contact MU again, and ttuuxxx... Also I found some of MU's packages and how he packed the DEV's as well. from your input about building on python, I'll work on doing the DEV packs too.

Thank you Lobster
[b][[url=http://www.tekwolf.net]Home of Wolf Pup Linux[/url]][/b]

User avatar
stevenbinion
Posts: 179
Joined: Fri 24 Aug 2007, 14:29
Location: Pittsburgh, PA - United States
Contact:

#8 Post by stevenbinion »

tombh wrote:Though one thing I suspect is that there might be a problem if these extra bindings are compiled in Puppy 4 but you're adding to the Python bundle that was compiled in Puppy 3.
well in this case lil or no difference. at least what I'm working on. my versions of puppy 3.01 & puppy 4.00 both are using the same kernel 2.6.21.7 and everything I currently have working has been compiled on 4.00 what doesn't seem to be working are the debian binaries.
[b][[url=http://www.tekwolf.net]Home of Wolf Pup Linux[/url]][/b]

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#9 Post by MU »

there are some pets here:

http://dotpups.de/puppy3/dotpups/Librar ... 19.2-libs/

Some are from the gdesklets-thread, some I compiled myself.
I don't remember, which I compiled myself.
You will depend on several gnome-libraries, too.
Mark
[url=http://murga-linux.com/puppy/viewtopic.php?p=173456#173456]my recommended links[/url]

User avatar
stevenbinion
Posts: 179
Joined: Fri 24 Aug 2007, 14:29
Location: Pittsburgh, PA - United States
Contact:

#10 Post by stevenbinion »

MU wrote:there are some pets here:

http://dotpups.de/puppy3/dotpups/Librar ... 19.2-libs/

Some are from the gdesklets-thread, some I compiled myself.
I don't remember, which I compiled myself.
You will depend on several gnome-libraries, too.
Mark
Thanks Mark.

I've gathered most of those all ready and made a dependencies list. but I had no idea so many of the packages I needed were in pets all ready, and i thought I looked everywhere. Some of those I've all ready made newer versions. I'll be posting a link to the files and a tutorial though once I have the base for wine-doors to work.
[b][[url=http://www.tekwolf.net]Home of Wolf Pup Linux[/url]][/b]

User avatar
stevenbinion
Posts: 179
Joined: Fri 24 Aug 2007, 14:29
Location: Pittsburgh, PA - United States
Contact:

#11 Post by stevenbinion »

all right, I'm just about there. I've been busy compiling python packages. and have most of my python bundle together that I've named python_plus-2.5.2. python plus includes the following packages so far.

Python-2.5.2-i686
pycairo-1.4.12-i686
pygobject-2.14.2-i686
pygtk-2.12.1-i686
dbus-python-0.82.4-i686
libxml2-2.6.32-i686
pyxdg-0.15-i686
pyorbit-2.14.3-i686

The complete bundle is available as python_plus-2.5.2_400.sfs;
Image 12.5 Mb
md5sum: b5c90064b7bc6b717fa0f7bd78eca2cb python_plus-2.5.2_400.sfs

You can browse here for the .pet packages;
http://www.tekwolf.net/. . . ./pet_packages-4/programing/

You can browse here for the .sfs packages;
http://www.tekwolf.net/. . ./sfs_packages-4/programing/

Please let me know how the package is working at this point, I'm still needed to add python-glade2 to this package to complete it for the wine-doors project. I was informed this should be provided by the gtk package but I see no evidence of glade2 being present, if some one could lend some advice on this it would be appreciated.

At some point I may continue with an additional bundle for optional modules and dev packages. but once I have glade2 in place I'll be redirecting my attention to python gnome desktop which will finish up the dependencies for wine-doors.
[b][[url=http://www.tekwolf.net]Home of Wolf Pup Linux[/url]][/b]

User avatar
stevenbinion
Posts: 179
Joined: Fri 24 Aug 2007, 14:29
Location: Pittsburgh, PA - United States
Contact:

#12 Post by stevenbinion »

Please continue with you're comments and suggestions here as they are helpful. I've still not confirmed if python-glade2 is working or not in python plus, so I'm hoping someone can test it out, but other wise this part of my project should be complete,

If you would follow me over to my new thread phase II for wine-doors. I'm building the "Python-Gnome-Desktop" and any suggestions or feed back will be welcomed.

http://murga-linux.com/puppy/viewtopic.php?p=203595#203595
[b][[url=http://www.tekwolf.net]Home of Wolf Pup Linux[/url]][/b]

Cur Dog
Posts: 64
Joined: Sun 23 Dec 2007, 00:49

#13 Post by Cur Dog »

stevenbinion, I downloaded your python plus .sfs file and added to the boot manager but I am having trouble running a python program. I have added the.sfs file to a Dingo frugal install. Should your .sfs file be all that is needed or did I miss something?

Cur Dog

Post Reply