<?xml version="1.0" encoding="iso-8859-1"?>
<response>
<error></error>
<message></message>
<rss version="0.91"><channel>
<title>EzTerry's Ramblings  : Python in OpenWRT</title>
<description>EzTerry's Ramblings's TrackBacks</description>
</channel>
  <item>
    <title>Python in OpenWRT</title>
    <link>http://devnull.name/blog/software/wrtpython</link>
    <description>
&lt;p&gt;
So I now have a python package for openwrt!  The only problem with it: Storage space.
&lt;/p&gt;
&lt;p&gt;However if you have a USB flash card with ~20MB free it will work!&lt;/p&gt;
&lt;p&gt;
This means I'm playing with it on a ASUS WL-500g Premium, but not my own WRT54GS
&lt;/p&gt;
&lt;p&gt;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 &lt; 32MB of ram
&lt;/p&gt;
&lt;h2&gt;Installing&lt;/h2&gt;
&lt;p&gt;
To make reinstallation and removal easier I did package the thing into an ipkg.  however this one has some pre-installation steps&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;symlink /opt to a location on your external media eg. ln -s /path/to/usb/key /opt&lt;/li&gt;
&lt;li&gt;install the ipkg to the root destination (default): ipkg install python24.ipk&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;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&lt;/p&gt;
&lt;h2&gt;download&lt;/h2&gt;
&lt;p&gt;The ipkg described above can be found at &lt;a  href=&quot;http://devnull.name/code/python24.ipk&quot;&gt;here&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;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&lt;/p&gt;
&lt;p&gt;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)&lt;/p&gt;
&lt;p&gt;Also note the ipkg was manually constructed, so my apologies for not having a build script&lt;/p&gt;</description>
  </item>
</rss></response>

