OpenWrt Forum Archive

Topic: python

The content of this topic has been archived on 28 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

has anyone ported python to openwrt? anywhere i could get a copy? thanks

I guess the worst that could happen is that it dosnt work...so give it a try, and remove it again if it dosnt.

You might run into a lot of dependency issues though.

Why making things so complicated if it's so easy? Python 2.4.3 is already ported to OpenWrt's Kamikaze package tree (/packages/lang/python/) and can easily be backported to WR with the WR SDK:

cd ~
tar -jxf OpenWrt-SDK-Linux-i686-1.tar.bz2
svn co https://svn.openwrt.org/openwrt/packages/
cd ~/OpenWrt-SDK-Linux-i686-1/package/
ln -s ../../packages/*/* .
cd ..
make package/python-{clean,compile}
ll ~/OpenWrt-SDK-Linux-i686-1/bin/packages/
total 5.9M
-rw-r--r-- 1 ubuntu ubuntu 5.8M Feb  3 14:27 python_2.4.3-1_mipsel.ipk
-rw-r--r-- 1 ubuntu ubuntu  66K Feb  3 14:14 uclibcxx_0.2.1-1_mipsel.ipk

Takes 25 minutes to backport Python 2.4.3 to latest WR.

Btw. RC5 is obsolete, you should reflash with nbd's 09test image which will be 0.9 release soon.

(Last edited by forum2006 on 3 Feb 2007, 13:46)

The mention of RC5 is from November (this is a 'revived' thread).

Thanks for the info about Python being in Kamikaze (a forum search provided no mention of it).

Any chance of getting this backport posted to http://downloads.openwrt.org/whiterussian/rc6/packages/ or 0.9 Release's packages when that does get posted?

I meant to imply that I was asking for an official RC6/0.9 package, from whoever is responsible for making such decisions smile

Well, if I was using WR I'd provide a backport repository. But I already switched to Kamikaze smile

I ran the commands above to make python. It ran Ok but I can't find any created package. In ~/kamikaze/Build-i386  there is a Py* directory with what appears to be result of a Python build. But in ~/kamikaze/bin there is no Python directory.

Also, once I create the package, how do i get it onto my device ( I am building for vmware). I noticed that there is a Package admin section in webif. Should I add a repository to my dev vmware virtual machine.

I am making Openwrt again now with all packages selected to see if that improves things.

EDIT: That didn't make a difference.


There is an apache server so i could use that for wget, but when I tried with a vmdk file, it came down as garbage. I bet the mime types don't include vmdk.

Cheers

Diarmuid

(Last edited by DiarmuidWrenne on 3 May 2007, 12:44)

The discussion might have continued from here.