python-for-iphone icon indicating copy to clipboard operation
python-for-iphone copied to clipboard

Build script for compiling python into a static library that can be used with the official SDK

Simple script to fetch, patch and build python for the iPhone and iPhone Simulator

The final products are located in `Python-2.6.5/_install/'

the most interesting files for iPhone development being

  • include/
  • lib/libpython2.6.a
  • lib/python2.6/

To compile with Xcode, add libpython2.6.a to your project and copy the directory lib' into your resources folder. You will also need to add include' to your header search path.

Known bug:

  • spaces cannot be present in path (most likely an issue with the Python Makefile)