Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Simplify compilation of complete applications #2011
It can be useful in some cases to compile a complete application into a single binary. Currently, this is difficult to do with Cython and involves several manual steps. Since most of this can be automated, there should be a tool for it.
A part of this is already implemented in the form of the cython_freeze tool and the BuildExecutable helper. Stitching it together into an easy to use "here's my code, drop the binary here" tool should not be all too difficult. Also take a look at Nuitka, which reportedly has a good way of dealing with this.
I've run into two major issues when trying to use Cython to take a python codebase and create a single binary, some of which I'm sure are due to gross ignorance on my part:
referenced this issue
Feb 2, 2018
@ha11owed that's something that's a limitation of Python's C API and is out of Cython's hands as far as I'm aware. If it's possible to create a Python C extension that is seen as a package while being built into the interpreter I'd be glad to put in work getting that into Cython.