EzTerry's Ramblings

Content for /dev/null

Python in OpenWRT

Fri, 2006 Dec 15, 22:26:

So I now have a python package for openwrt! The only problem with it: Storage space.

However if you have a USB flash card with ~20MB free it will work!

This means I'm playing with it on a ASUS WL-500g Premium, but not my own WRT54GS

from a ram perspective simple things seem to run in about 1MB, while help/pydoc use 5MB. I have yet to go much beyond that. However given this requirement I doubt it will run well on a WRT with < 32MB of ram

Installing

To make reinstallation and removal easier I did package the thing into an ipkg. however this one has some pre-installation steps

  • symlink /opt to a location on your external media eg. ln -s /path/to/usb/key /opt
  • install the ipkg to the root destination (default): ipkg install python24.ipk

to run you may use /usr/bin/python or /usr/bin/python2.4 both symlink to /opt/local/bin/python2.4 In addition you can find all the python libraries and modules in /opt/local/lib/python2.4

download

The ipkg described above can be found at here

This is a cross compile of python 2.4.4 from here: http://www.python.org/ftp/python/2.4.4/Python-2.4.4.tgz

No changes outside of modifying the auto-generated make file after configure to use my x86 python to help build the modules (rather than the mips python on an x86)

Also note the ipkg was manually constructed, so my apologies for not having a build script


Submit a Comment

Name:

URL or Email: (note: If you give your email address it will posted, put the url to your web page or leave blank if you are worried about spam)

Title:

Comment:
Save your info |
Unless otherwise noted, material on this sight is licensed under the Creative Commons Licence
December
Sun Mon Tue Wed Thu Fri Sat
         
15
           
2006
Months
Dec
Terrence Ezrol
Powered by Blosxom Valid HTML 4.01 Valid CSS!