Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Python build script to create a small embeddable static Python lib
C C++ Objective-C Python
branch: master
Failed to load latest commit information.
CPython @ ecd9d4a select python v2.7.3 as earlier
iOS-static-libs iOS static libs
pycrypto @ 125a4f9 pycrypto
pycryptoutils some additional debug output
pylib disable pymalloc
.gitignore gitignore
.gitmodules git submodules readme pystaticlib.c select new iOS SDK
pygetpath.c more
pyimportconfig.c fcntl module

Python embedded

Build a single static library with Python and PyCrypto.

This passes test_crypto() in binstruct.

I tried a sample iOS binary where I linked against libpython.a and copied the pylib directory into Resources (following not-included symlinks).

This is the sample code:

Py_SetProgramName((char*)[[[[NSBundle mainBundle] bundlePath] stringByAppendingString:@"/"] UTF8String]);
PyRun_SimpleString("print 'Hello world!'");

And it works. :)

Something went wrong with that request. Please try again.