Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document how to embed Cython modules in C/C++ applications #3510

Open
scoder opened this issue Apr 14, 2020 · 3 comments
Open

Document how to embed Cython modules in C/C++ applications #3510

scoder opened this issue Apr 14, 2020 · 3 comments

Comments

@scoder
Copy link
Contributor

@scoder scoder commented Apr 14, 2020

The documentation on embedding is inherently lacking. Even the one in the CPython docs is incomplete at best.

There are some hints in the Wiki, there's the --embed option to the cython and cythonize frontends, the embedding demo, the PyImport_AppendInittab() function in CPython and the documentation of the module init function in CPython.

All of these are incomplete and none of them gives the whole picture in one place. There should be a dedicated documentation page in the Cython docs for this, and the documentation in the CPython docs is also worth improving.

@scoder scoder changed the title Document embedding Document how to embed Cython modules in C/C++ applications Apr 14, 2020
@scoder
Copy link
Contributor Author

@scoder scoder commented Apr 14, 2020

I created a stub page in https://github.com/cython/cython/blob/master/docs/src/tutorial/embedding.rst – improvements welcome!

@brightening-eyes
Copy link

@brightening-eyes brightening-eyes commented Apr 24, 2020

hi,
the distribution of the embedded application should be documented as well, like how python modules are searched, in order to copy them beside the compiled executable. something like wxpython for example.

@scoder
Copy link
Contributor Author

@scoder scoder commented Apr 24, 2020

Sure, investigation and PRs welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.