Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (5) </ 1 [2] 3 4 5 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Python on DSL, it is for Sabnzbd< Next Oldest | Next Newest >
stupid_idiot Offline





Group: Members
Posts: 344
Joined: Oct. 2006
Posted: June 14 2007,16:57 QUOTE

I just compiled a python-2.5 uci. Basically, two directories: Keep the read-only stuff in /opt/python-2.5, and let the directory for user-installed stuff be /opt/python-2.5_site-packages. How does python find it? Just replace /opt/python-2.5/lib/site-packages with a symlink to /opt/python-2.5_site-packages.

So, I've done the above, plus some extras such as symlinks in /usr/lib for libpython2.5.so* so you can compile stuff that needs to find the python shared lib. As well as the obligatory symlinks in /opt/bin for the python binaries plus a /usr/bin/python symlink, of course.

Will send this uci in soon!
Back to top
Profile PM 
dafunks Offline





Group: Members
Posts: 20
Joined: May 2007
Posted: June 15 2007,23:33 QUOTE

Cool. I think X-DSL can use UCI's but I have had some problems in the past.

And your right X-DSL has not been updated since 2005 sadly. Would love it to be. If i knew how id update it. But as I cant even get python 2.5 working not sure id be able too
Back to top
Profile PM 
stupid_idiot Offline





Group: Members
Posts: 344
Joined: Oct. 2006
Posted: June 17 2007,05:01 QUOTE

Have tried installing cheetah, cherry as well as bittorrent stuff (Twisted, zope-interface, etc.) with the uci and so far seems to work okay.
From testing, it seems packages will need to write to $PREFIX/bin,include, and share. So I think I will make a directory called /opt/py25 and put all the writable dirs in there.

So we have:
/opt/py25/bin [<100K]
/opt/py25/include [<600K]
/opt/py25/share [unused, 0K]
/opt/py25/site-packages [only a README, 4K]

And that's about it.

Also, zlib in DSL is a few versions behind (1.1.4) and I am getting a 'undefined symbol' error when I try to run BitTorrent with python. The error goes away when I replace zlib with a recent version (1.2.2). Since I can't replace DSL's zlib I will put the newer zlib in /opt/python-2.5/lib and use rpath linking on the python libraries.. I'll keep you guys posted. Maybe some screenshots by tomorrow.
Back to top
Profile PM 
stupid_idiot Offline





Group: Members
Posts: 344
Joined: Oct. 2006
Posted: June 20 2007,06:28 QUOTE

Very sorry, I couldn't spend any time with Python yesterday. Here's a screenshot, more later:

This is SABnzbd:
http://farm2.static.flickr.com/1217/574056473_97e43b76cf_o.gif

This is BitTorrent:
http://farm2.static.flickr.com/1118/573951991_4b573d8715_o.gif

Will try to get python-2.5.tar.gz sent to extensionsATdamnsmalllinux.org by tonight.
EDIT: Very busy currently, but should be able to send completed extension in a few days.
Back to top
Profile PM 
stupid_idiot Offline





Group: Members
Posts: 344
Joined: Oct. 2006
Posted: June 27 2007,02:14 QUOTE

Hello,
      python2.5.uci has been submitted and will take from a few days to a week to be tested and uploaded. Very sorry to keep you waiting. I hope you'll like it.
Back to top
Profile PM 
22 replies since June 07 2007,14:07 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (5) </ 1 [2] 3 4 5 >/
reply to topic new topic new poll
Quick Reply: Python on DSL

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code