Other Help Topics :: Python on DSL



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!

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

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.

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.

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.

Next Page...
original here.