added implementation of Py_Initialize,Py_Finalize,Py_SetPythonHome,Py_SetProgramName as cpyext

Closed Bitbucket Importer requested to merge bitbucket/declined-pr-67 into branch/default

Created originally on Bitbucket by unbit (Roberto De Ioris)

Changesets for this Pull Request have not been imported, because it had been already declined on Bitbucket. Marked as closed by the import user.

This commit add support for a series o cpython-compatible api functions required for embedding libpypy in c apps. They are all written in rpython (as cpyext) except for Py_Initialize requiring a call to RPython_StartupCode. Tested with uWSGI tip.

Merge request reports