Python on the SBC

From HotDec

Jump to: navigation, search

This document details how to create a very small installation of python.


Download Python


Build and install:

./configure --prefix="/usr/local/" --exec-prefix="/usr/local/" --disable-shared --disable-profiling --disable-toolbox-glue --disable-ipv6  --disable-unicode --without-doc-strings
scp /usr/local/bin/python2.4 <SBC>:/usr/local/bin/
ssh <SBC>
mkdir -p /usr/local/lib/python2.4
ln -s /usr/local/lib/python2.4 /usr/local/lib/python
ln -s /usr/local/bin/python2.4 /usr/local/bin/python

Add these lines to /etd/profile:

PYTHONHOME=/usr/local
export PYTHONHOME

Move the modules you need to /usr/local/lib/python:

scp yourname@elegy.mie.uiuc.edu:/usr/local/lib/python2.4/module.pyc /usr/local/lib/python2.4

list of installed modules (so far):

  • UserDict
  • copy_reg
  • os
  • posixpath
  • site
  • stat
  • types


Total SBC space impact: 2.8MB

Personal tools