How could i slim Python for embedded ?

Dave Cinege dcinege at psychosis.com
Sat Oct 6 19:22:27 EDT 2001


On Saturday 06 October 2001 16:48, dag4004 wrote:
> Hello,
>
> I want to use Python for an embedded computer so don't

Diesel Dave's super secret small python recipe:
	Do not compile debug info (remove -g)
	Compile -static to eliminate any library requirments
	'strip' the binary
	Use UPX executable compressor (search sourceforge)

This will get you ~350K self contained python. Move .pyc modules as
needed. You're on your own for .so modules. (Maybe they can be compiled in
static??)

If you need less then this you have your work cut out for you
and will have many compatibility hurdles to deal with.

Dave

-- 
The time is now 22:19 (Totalitarian)  -  http://www.ccops.org/clock.html




More information about the Python-list mailing list