Python
From GumstixDocsWiki
Python is available for application-level programming on the Gumstix.
Contents |
Configure
Just enable Python in Buildroot. This adds about 7Mbytes to your root filesystem.
Native gcc
If you use a native gcc compiler on your Gumstix to install modules written in C you'll need to edit 4 lines in
/usr/lib/python2.4/config/Makefile:
CC= / path to /gumstix-buildroot/build_arm_nofpu/staging_dir/bin/arm-linux-uclibc-gcc change to CC= /usr/bin/gcc AR= /usr/bin/ar RANLIB= /usr/bin/ranlib CONFIG_ARGS ... CC=/usr/bin/gcc CPP=/usr/bin/cpp
Download Cross-compiled Modules
Stackless Python
Read Jeff Senn's mailing list post
download stackless-package.tgz attached to that post, and unzip the tarball in gumstix-buildroot/package directory.
edit package/Config.in, and add this line: source "package/stackless/Config.in"
put it alphabetically after package/sqlite/
run gumstix-buildroot/make menuconfig
select [*] stackless
do not select [ ] python
they are mutually exclusive

