ts-7000
[Top] [All Lists]

Re: [ts-7000] Python on TS-7000.

To:
Subject: Re: [ts-7000] Python on TS-7000.
From: "Breton M. Saunders" <>
Date: Tue, 30 Jan 2007 23:19:49 +0000
You can easily build python yourself using buildroot.  Or, if you don't like buildroot, build it from scratch by applying python patch # 1006238 (use google to find) and python 2.4.2. 

Once built and installed, delete all of the .py files and .pyc files from lib/python2.4.  Make sure that your application supplies .pyo (optimized python builds).  Delete the testing packages as well, and anything else unnecessary from lib/python2.4/ .  When you run your application, make sure you run it with python -OO  <your file .py> so that the optimized .pyo files are used by default.

I ran python 2.4.2 from a 5.5MiB cramfs filesystem from flash on an edb9302.  The 5.5MiB filesystem contained everything needed for a running linux system.

Good luck.

    -Brett







Bas Schulte wrote:


On 30-jan-2007, at 23:27, Eddie Dawydiuk wrote:
> > How large (or small, as the case may be) is the python package that
> > these people are using?
>
> You could take a look at the Debian packages to get an idea of how
> much
> space is required as it would depend upon what Python packages you
> need.
> We installed Python on one of our customers boards, IIRC we added
> Python
> and Python-Serial to TS-Linux. I believe the Python packages and
> all of
> the dependencies required around 20MB. This included all of the
> documentation and examples...

I was having a go at this today. Cross-compiling didn't quite work
(compiling the c/c++ code went fine but part of the process runs the
python that was just built which isn't gonna work when
crosscompiling), compiling using TS's dev. kit mostly worked except
that during 'make install', it starts to compile more stuff, then it
bombs out due to lack of memory. This is on a ts-7400 with 32 Mb. On
my next try, I'll activate some swap space and see how that goes.
BTW, the directory that it was installing into (not complete) was at
30 Mb... the python binary itself took 3.5 Mb of that.

What I did see is that it installs *a lot*, by default! I'm not
familiar with Python nor how you can configure what gets installed,
I'll take a look at that when I get it to build. Oh, and run, as I
plan to run it on a stripped system, not the full TS dev kit. Same
kernel version so it'll hopefully work.

My hope is that python code won't take as much RAM as perl code; I've
got a prototype perl daemon running and that's eating up close to 8
Mb VmSize :(


__._,_.___


SPONSORED LINKS
Single board computer Hardware Computer running slow
Linux os Single board

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: =Email Delivery: Digest | m("yahoogroups.com?subject","ts-7000-fullfeatured");=Change Delivery Format: Fully Featured">Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | =Unsubscribe

__,_._,___
<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU