Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/albertz/python-embedded
Python build script to create a small embeddable static Python lib
https://github.com/albertz/python-embedded
Last synced: 16 days ago
JSON representation
Python build script to create a small embeddable static Python lib
- Host: GitHub
- URL: https://github.com/albertz/python-embedded
- Owner: albertz
- Created: 2012-06-11T19:00:26.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2014-02-24T13:46:47.000Z (over 10 years ago)
- Last Synced: 2024-10-18T19:15:43.755Z (26 days ago)
- Language: C
- Size: 25.3 MB
- Stars: 82
- Watchers: 14
- Forks: 24
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Python embedded
===============Build a single static library with Python and PyCrypto.
This passes `test_crypto()` in [binstruct](https://github.com/albertz/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. :)