Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
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.md readme
better_exchook.py pystaticlib.c
compile.py select new iOS SDK
pygetpath.c more
pyimportconfig.c fcntl module

README.md

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]);
Py_Initialize();
PyRun_SimpleString("print 'Hello world!'");

And it works. :)

Something went wrong with that request. Please try again.